RailsCasts Pro episodes are now free!

Learn more or hide this

Samuel Simões's Profile

GitHub User: samuelsimoes

Site: http://blog.samuelsimoes.com

Comments by Samuel Simões

Avatar

The tutorial is great, helped me alot, but I have some problems with one thing.

In the tutorial in the first moment RB say to make a first express checkout payment and right soon create the subscription, but this is very bad, because the whole transaction happen in two parts, and I've been in troubles when the first payment happend smoothly, but the subscription is not created for some error.

Avoid this!
https://github.com/railscasts/289-paypal-recurring-billing/blob/master/saas-after/app/models/paypal_payment.rb#L15

Let the subscription make the first payment, case the subscription creation fails, the user won't make a first payment but no one subscription.