#grace_m6795
1 messages · Page 1 of 1 (latest)
hello! can you share an example PaymentIntent id? the prefix is pi_
pi_3OgldzBGcwpBeI5I0X05HRgW
Your code is passing payment_behavior = "default_incomplete" when creating the Subscription which indicates to Stripe that you don't want us to automatically attempt to pay the Invoice by confirming its underlying PaymentIntent. In such a case, you would use the PaymentIntent's ClientSecret value to confirm the PaymentIntent client-side, for example in case 3DS is needed.
If you want Stripe to automatically attempt payment of the Invoice on creation, what you need to do is switch to payment_behavior = "allow_incomplete" instead. This means Stripe will attempt a payment synchronously but if it fails or requires a customer action (such as doing 3DS) it won't error and you can still attempt to confirm the PaymentIntent client-side if needed.