I have no easy solution to your problem. I guess that the response is empty and lead to an invalid json when trying to decode it. Do you see the request in your stripe dashboard ? You could also try to debug down to the call of stripe.charge() to see internally what is received or spy what is exchanged (I use vcrpy to be able to replay my tests locally, and as a side effect, it allows to see precisely which data are send and receive).
Hope this help. On Tue, Mar 28, 2017 at 4:47 AM Happy Rob <happy.rob.ang...@gmail.com> wrote: > 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.