#ilyeselb-subscription-3ds
1 messages · Page 1 of 1 (latest)
Hi 👋 sorry, but I don't think I'm understanding the question. Could you clarify what your flow is doing and where it stops behaving as you're expecting?
i have subscriptiion
we are doing a payment for subscrption
we use setupPaymentintent
to retreve the payment inteent and show the chkount
What is setupPaymentIntent?
so are you retrieving a Payment Intent, or working with a Setup Intent?
we retreive the setupIntent
Okay, where are you getting that Setup Intent from, and how does it relate to the Invoice that you referenced initially?
the normal payments are working
whenn we create invoice etc ...
but 3d secure paymnet
the invoice stays incomplete
If you're using a Setup Intent, then you aren't using anything associated with an Invoice. I'm still not really sure what your flow is, but it sounds like you may want to be finding the ID of the Payment Intent on the existing Invoice rather than creating a Setup Intent.
The payment_intent field on the Invoice points to the related Payment Intent:
https://stripe.com/docs/api/invoices/object#invoice_object-payment_intent
we used setup intent to enable coupons
iif we show the payment Element
with subscription
how we can add copun to it?
should we re create the sub? if yes, we will have unused sub data everytime user leave the payment page or add a copun
You can leverage our newer flows that allow you to defer the creation of a Subscription (or Payment Intent) object until after the Payment Element is rendered, which will help avoid having incomplete Subscriptions hanging around until they are automatically canceled.
https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=subscription