>
> OK,I'm down to just this now:
def pay():
from gluon.contrib.stripe import StripeForm
form = StripeForm(
pk='pk_test_xxxxxxxxxxxxxxxxxx',
sk='sk_test_xxxxxxxxxxxxxxxxxx',
amount=1000,
description="Example charge").process()
if form.accepted:
#can also add stuff to update my records and allow them access and
that. Also send them an email. But me, I’ll probably do that on the TU page
itself.
redirect(URL('thank_you'))
elif form.errors:
redirect(URL('pay_error'))
return dict(form=form)
but I get an internal error:
<class 'gluon.contrib.simplejson.decoder.JSONDecodeError'> No JSON object
could be decoded: line 1 column 0 (char 0)
I have no idea what this means! Help!
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.