#cnguyen-subscription-statemachine
1 messages · Page 1 of 1 (latest)
Hello cnguyen85, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• cnguyen85, 5 days ago, 33 messages
• cnguyen85, 5 days ago, 40 messages
• cnguyen85, 6 days ago, 6 messages
• cnguyen85, 7 days ago, 10 messages
Hi. I would like to handle the subscription and rebill by my side
To do it like Stripe, I would like to know how it works ? I know that you create an invoice each time for example. And what do you use ? It's a SI or a PI ?
You can use SetupIntents to store the payment methods https://stripe.com/docs/payments/save-and-reuse
and once attached, you can set it as default payment method on the customer
After that, if you'd like to use one-time invoices then you can do that by calling the create invoice API directly
https://stripe.com/docs/api/invoices/create
OR you can charge the PaymentMethod by creating a PaymentIntent
https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method
If I don't need to do invoice, I juste have to:
1 - Save the card with SI
2 - Use a CRON to do monthly payment with PI off_session
Correct ?
Correct