| Start |
|---|
| How to integrate with Stripe Add Stripe gem to our Add How to create a new customer to StripeThis code creates a new customer on Stripe with given email address and source.
How to retrieve a plan from StripeThis code retrieves a plan from Stripe by its id. How to create a subscriptionWhen we have a customer and a plan we can create a new subscription on Stripe. It will create a new subscription and will charge our User. It's important to know what really happens on Stripe when we subscribe a user to a plan, you will find more info here: Stripe Subscription lifecycle (opens new window). How to charge a user with a single paymentSometimes we want to charge our users just a single time, for do that we will do the next. In that case, we are charging our user one time for given amount. Common errors: RemarksDocumentation. |
Read Article
https://develop.horje.com/learn/1434/reference