Other Recipes - Stripe - in the manual out of date.

28 views
Skip to first unread message

David Manns

unread,
Oct 10, 2018, 2:30:33 PM10/10/18
to web2py-users
I recently implemented stripe checkout in my site which runs on Pythonanywhere. Initially, I followed the recipe in the manual, using /gluon/contrib/stripe.py. Worked in local test, but failed on my test site which is a free Pythonanywhere account, although PA say Stripe is whitelisted.

The officially documented Stripe API is different, and uses the Python stripe module. Changed my code to follow the api as descibed at https://stripe.com/docs/quickstart

This version does work on free Pythonanywhere accounts.

According to Pythonanywhere support, the /gluon/contrib/stripe.py implementation does something that the proxy used for free PA accounts doesn't like.

Suggest the manual recipe refer to the stripe API docs.
Reply all
Reply to author
Forward
0 new messages