#0xL34N
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Hello Vanya! Thanks
I'm new with Stripe API, and i try to understand everythink before start
You can create Prices for monthly and yearly subscription: https://stripe.com/docs/billing/migration/migrating-prices
Plans is an old way.
Each Product can have multiple prices.
I haven't created anything yet, so what is the path you recommend me to take for a Saas that is going to offer monthly plans with annual payment option?
In your case you need one Product (that has a name, description, picture, etc.), and 2 prices, one monthly and one yearly
Oka, i understand
And then i need to create a Subscription and add this Product, right?
Subscription refers to Prices.
Create a subscription with the monthly Price, for example, and Product details will be loaded automatically (because it's attached to the Price).
Oka and for the case of the annual? Should I create a subscription?
Yes, it's the same
When i create a Product with 2 Prices, one is Monthly and other Annual
Both generate Price ID
I only need to configurate the Subscription with this Price ID? And will the API automatically know if the charge is monthly or annual?
Yes
Amazing
Oka, i need to know when the user does not pay o change the Plan, Can i use Webhook for this function or do you have another better option?
I have another question, how can i offer my users 2 months free? In the Subscription options i see promotion_code and coupon, what is the difference?
You can listen to invoice.payment_failed event: https://stripe.com/docs/api/events/types#event_types-invoice.payment_failed