For those looking for how to get Stripe to work with Web2Py, follow the API
from Stripe. The getting started documentation with the checkout script
works. Make sure you are following the Python code section.
(https://stripe.com/docs/quickstart)
Hint: Place the checkout script inside of a web2py
I know your post is a long time ago, but since I have just been dealing
with the same issue ...
Initially, I followed the implementation described in the web2py manual,
using /gluon/contrib/stripe.py.
This worked locally but not on my (free) test account at PA. I
re-implemented, following the
Looking a little deeper (thanks google) it seems that the free version of
python anywhere is unable to send the JSON thing through some proxy.
To be honest I'm not entirely sure what that means, but the solution seems
to be to get the app working locally, then later upgrade to a paid plan
when r
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 excha
>
> OK,I'm down to just this now:
def pay():
from gluon.contrib.stripe import StripeForm
form = StripeForm(
pk='pk_test_xx',
sk='sk_test_xx',
amount=1000,
description="Example charge").process()
if form.accepted:
Oops, it would be $1000, and I also need to put in a proper description,
but that's not the tricky bit.
Thanks
Rob
--
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 Is
Hi Mathieu
I used Stripes submit form and put that in a form, and that seems to work
ok -
https://robstestinglab.pythonanywhere.com/c/e/b1
https://checkout.stripe.com/checkout.js";
class="stripe-button"
data-key="pk_test_X"
data-amount="999"
data-name="XXX"
I use the attached modules/stripeform.py, which is mostly based upon the
contrib/stripe.py
It imports the python stripe module :
https://github.com/stripe/stripe-python.git
I use it like :
@auth.requires_login(otherwise=lambda: helper.flash(
T("You need to log in to extend your subscription")
I use Stripe all the time. My sites (web2py and rails) have charged over
$10M thru stripe so I'd have to say it works pretty well.
My favorite way to use it is to use their Javascript pop-up box, which
prevents any CC info from even getting into my server logs. I actually
started using it bef
I'd be very interested too!
--
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
"we
I'd be very interested to see how you manage the Checkout form within the
web2py framework.
- Scott
On Thursday, March 23, 2017 at 4:11:02 AM UTC-4, Mathieu Clabaut wrote:
>
> I have a working stripe integration in web2py which is closely based to
> what the gluon/contrib/stripe.py provides.
>
I have a working stripe integration in web2py which is closely based to
what the gluon/contrib/stripe.py provides.
I'll try to provide more information this evening.
On Thu, Mar 23, 2017 at 2:47 AM Dave S wrote:
>
>
> On Wednesday, March 22, 2017 at 6:42:42 PM UTC-7, Dave S wrote:
>
>
>
> On Wed
On Wednesday, March 22, 2017 at 6:42:42 PM UTC-7, Dave S wrote:
>
>
>
> On Wednesday, March 22, 2017 at 6:29:38 PM UTC-7, Scott Hunter wrote:
>>
>> From the deafening silence, apparently this was not enough detail for
>> anyone to even ask what other details I need to provide, so I'll do it
>>
On Wednesday, March 22, 2017 at 6:29:38 PM UTC-7, Scott Hunter wrote:
>
> From the deafening silence, apparently this was not enough detail for
> anyone to even ask what other details I need to provide, so I'll do it
> myself: what other info do I need to provide to get some kind of response?
>
>From the deafening silence, apparently this was not enough detail for
anyone to even ask what other details I need to provide, so I'll do it
myself: what other info do I need to provide to get some kind of response?
- Scott
On Wednesday, March 22, 2017 at 4:22:24 AM UTC-4, Scott Hunter wrote:
I enter the credit cad info, the submit button turns green w/ the animated
check box after being pressed, and the appropriate controller gets invoked.
But there is nothing in the request about the token: no post vars (which
makes sense, since it isn't using a web2py-generated form), but not eve
You might need to be more detailed describing your issue.
On Wednesday, March 22, 2017 at 11:19:21 AM UTC+8, Scott Hunter wrote:
>
> Has anyone been able to use Stripe's Checkout with web2py? If so, how did
> you do it? I'm having trouble getting the token it generates back.
>
> - Scott
>
--
17 matches
Mail list logo