Steve, didn't Luke build one?
I did do basic paypal integration for a project on an older version of
cartridge.
The main problem for me was that it involved handing over to paypal
and relying on a callback view from paypal, which then did not have
the session data for the original user, which is how cartridge stored
a lot of its pre-final-order information. This was different to our
credit card processor that did the connection and processing using
urllib internally (so we never left the user's session).
The main links I used were:
- instructions courtesy
http://uswaretech.com/blog/2008/11/using-paypal-with-django/
- for a paypal django module courtesy: http://djangosnippets.org/snippets/1181/
- all bundled into an app at https://github.com/johnboxall/django-paypal
What I did to get it working:
1. Modify the Order model to allow "in process" or incomplete orders
and a special paypal flag
2. Before going to paypal, create an "in process" Order object and save it
3. Creating the paypal button (a PayPalPaymentsForm) and rendering it
(as per the app instructions)
4. Having a paypal_success view that paypal calls when a successful
payment goes through.
5. Use the information passed back from paypal to reload the "in
process" order and complete it.
Regards,
Luke
-Tom
I made it aware of mezzanine.conf.settings. I will add sample payment
processor code later today and a defaults.py.
ken
2011/11/27 Sebastián Magrí <sebas...@gmail.com>:
I should note that direct payments requires a Paypal Website Pro account.
If there is interest, I could break this out into two separate express
checkout and direct payments processor versions for Cartridge, to live
alongside the existing payment processors.
ken
+1 would love to have those included
I tested nearly identical code tonight for a project, but am simply
too burnt to give this a thorough going-over right now.
I appreciate any feedback you have.
cheers,
ken
2011/11/28 Sebastián Magrí <sebas...@gmail.com>:
> +1
>
I will get a chance to test this tomorrow, but nearly identical code
has been working for me tonight on a project.
I appreciate any feedback you have.
cheers,
ken
ken
Kudos!