#kaeshk-subscription
1 messages · Page 1 of 1 (latest)
I think you have mixed up things here. PaymentIntent and SetupIntent has separate API, no way you can have a SetupIntent Id returned in a PaymentIntent creation
You choose either PaymentIntent flow or SetupIntent flow, that's it
When you create a Subscription, there 2 cases:
- It could require Payment immediately. In this case you take its Invoice's first PaymentIntent, plug into client side to confirm it
- It doesn't require PaymentIntent immediately, ie. on trial etc. In this case Stripe automatically create a SetupIntent. You also take this SetupIntent and plug into client side to confirm it
referring to the first case, choosing the payment intent flow , where first installment is required immediately followed by MIT without customer intervention. Would the flow be:
- create payment intent with setup_future_usage (with customer and payment method info)
- customer authorizes payment
- confirm setup_intent (need clarity here)
- recurring payment (using payment_intent, would help if there is a sample curl)
No I don't think this is the flow if you want to create a Subscription. You would want to use our Subscription API instead
how do i link subscription and payment intent entity