Using stripe is very easy. You register and you ask web2py to give you a 
stripe payment form:

def pay():                                                                 
                            
    from gluon.contrib.stripe import StripeForm                             
                           
    form = StripeForm(                                                     
                            
        pk=STRIPE_PUBLISHABLE_KEY,                                         
                            
        sk=STRIPE_SECRET_KEY,                                               
                           
        amount=150, # $1.5 (amount is in cents)                             
                           
        description="Nothing").process()                                   
                            
    if form.accepted:                                                       
                           
        payment_id = form.response['id']                                   
                            
        redirect(URL('thank_you'))                                         
                            
    elif form.errors:                                                       
                           
        redirect(URL('pay_error'))                                         
                            
    return dict(form=form)  

The StripeForm generates all the HTML you need for the most secure 
transaction possible base don stripe rules. Using this the only addition 
requirement for you to be CISP compliant is serving the page over HTTPS. 
The card data never hit your server.

On Monday, 31 March 2014 11:44:05 UTC-5, Greg Vaughan wrote:
>
> Check out Stripe... https://stripe (dot) com/
>
> Massimo has a library created here and there is some support in the docs...
>
>
> On Monday, 31 March 2014 19:57:14 UTC+10, Mika Sjöman wrote:
>>
>> Hi
>>
>> I wonder if anyone here has implemented recurring payments with Paypal 
>> here with Web2py? Any experience with this and how to implement it?
>>
>> We currently charge people for lessons with our teachers, but we would 
>> like to go over to a payment model where we automatically charge the 
>> customers every month. 
>>
>> Is there a better way of doing this than Paypal? Market is mostly US and 
>> China based. 
>>
>> Cheers
>>
>

-- 
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.

Reply via email to