[Catalyst] Catalyst and PayPal

Gavin Henry ghenry at perl.me.uk
Mon Apr 21 15:35:46 BST 2008


<quote who="Angel Kolev">
> Zbigniew Lukasiak wrote:
>> On Mon, Apr 21, 2008 at 1:43 PM, Kieren Diment <diment at gmail.com> wrote:
>>
>>>  On 21 Apr 2008, at 21:22, Angel Kolev wrote:
>>>
>>>
>>>> Hi fellas.
>>>> I plan to include PayPal payment possibility in my cat website. Is
>>>> there
>>>>
>>> any plugin/tool that works with the paypal developers toolkit
>>> https://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/software_dev_kit_php-outside
>>>
>>>> Can anyone give me a direction
>>>>
>>>>
>>>  http://search.cpan.org/~mock/Business-PayPal/  # simplest
>>>  http://search.cpan.org/~scottw/Business-PayPal-API # newest and
>>> probably
>>> most complete
>>>  http://search.cpan.org/~sherzodr/Business-PayPal-IPN # most reviewed
>>> on
>>> cpanratings.
>>>
>>>  Whichever one you go with a base controller (e.g.
>>> Catalyst::Controller::Business::Paypal) onto cpan would be appreciated.
>>>
>>
>> I am not so sure if the, often repeated here, advice to build
>> everything as a base controller is a good one.  Let's say you would
>> like to use the PayPal thing and FormFu - and bang you are dealing
>> with the tricky area of Multiple Inheritance.  'Composition over
>> Inheritance' is popular in other circles.
>>
>>
> I dont need FormFu, because i will use Template toolkit only. May be
> Catalyst::Controller::Business::Paypal is good enough solution. Im not
> familiar with paypal, but can i test some payments without "real" money
> transactions?
>

There's already one in Catalyst SVN. We use it and have added to it for
https://www.flexitimemanager.net

See:

http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Model-PayPal-IPN/

It does the form data and encryption too. See the docs for it I did.

Gavin.



More information about the Catalyst mailing list