I have been working on this for a few days now, feels like banging my head against a wall. Mine is a "bit" more generic, but there are some serious problems with satchmo itself when it comes to stripe integration.
Here is my attempt (still doesn't work) https://github.com/buddylindsey/satchmo-stripe My biggest problem is getting the token to the processor. I am trying to avoid saving to the DB, but if I have to I will. Just throwing out my attempt as well. On Wednesday, March 28, 2012 5:43:52 PM UTC-5, RJ Ryan wrote: > > Here's my first hack at the Stripe module. > > It's missing: > * Templates (all my templates are specific to my use of Satchmo. I'll try > to make some based on the example project) > * Handling of notifications from Stripe (it just logs them and does > nothing more) > > The way Stripe works is that you never handle credit card details at all. > The form that the user enters their details into is posted to Stripe, and > then in Javascript you get a token back from Stripe's servers which is a > 1-time-use token for charging that credit card. The way I did it, the token > is POSTed to Satchmo and its stored in the database much like credit card > credentials are stored in the database in other payment modules. When it > comes time to charge the credit card, it requests the charge from Stripe > and either succeeds or fails. Because of this you don't need a callback > from Stripe to indicate that the payment succeeded. > > What you /do/ need to listen to the callbacks for are charge disputes and > refund actions. I haven't implemented this yet. > > I wanted to get the code up somewhere so that people can use it and > comment on my implementation. It's hard to know if I'm following all the > requirements of a Satchmo payment module so I'd appreciate any comments > about what I'm doing wrong. > > To use it you need to install the stripe Python package: > http://pypi.python.org/pypi/stripe/ > > Here's the branch: > https://bitbucket.org/rryan/satchmo/changeset/745fbd35b6f9 > > On Tuesday, March 27, 2012 11:40:22 AM UTC-4, RJ Ryan wrote: >> >> After realizing the Google Checkout API (not related to Satchmo) doesn't >> support what I need, I hacked up a Stripe payment processor for Satchmo >> today. It works well on Satchmo 0.9.1. I'll try to clean it up and get the >> code pushed somewhere soon. The main limitation to be aware of with Stripe >> is that it only supports USD. >> >> What's the status of django-bursar? Should I bother trying to get this >> merged into Satchmo or will the payment processors be deleted soon in favor >> of django-bursar? >> >> On Friday, January 13, 2012 2:51:18 PM UTC-5, nym wrote: >>> >>> Curious if anyone has Satchmo using Stripe instead of PayPal, etc. >>> >>> >>> http://justinvincent.com/page/1790/how-i-converted-my-subscription-site-from-paypal-to-stripe-in-2-days >>> >>> Cheers, >>> Tom Longson >>> >>> ---------------------------------------------------------------------------- >>> CUPCAKES!! http://www.cupsandcakesbakery.com/ >>> >>> -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To view this discussion on the web visit https://groups.google.com/d/msg/satchmo-users/-/1kUlJHktPfoJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
