#surajkumar8781
1 messages ยท Page 1 of 1 (latest)
Hello! 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.
- surajkumar8781, 3 hours ago, 14 messages
- surajkumar8781, 21 hours ago, 12 messages
๐ happy to help
Yes Please
is this intended to be for customers in India?
Attaching code for your reference
Not specifically for indian customer but Europe and US customers
Update please ?
please be patient will be with you shortly
Okay thank you, our production customers are blocked now so want resolve it ASAP.
ok so I see that you're not using the correct flow
you're creating a SetupIntent first and confirming it e.g. https://dashboard.stripe.com/test/logs/req_bsVvjs5jBOBkHg
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
then creating a subscription and passing the PM to it e.g. https://dashboard.stripe.com/test/logs/req_XezUjjyIQwgp8P
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
that shouldn't be the case otherwise the 3DS might be required twice
once for the SetupIntent
and once for the subscription invoice
Okay so what should be correct flow ?
instead you need to follow this guide https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
This flow is for paymentIntent but we are using setupIntent
you shouldn't be using SetupIntents
actually... you shouldn't be using seperately created SetupIntents
if the subscription has a trial period or a 100% off coupon
then instead of using the latest_invoice.payment_intent.client_secret to collect the Payment Method on the frontend you would use the pending_setup_intent.client_secret
in both cases, if the customer is in India, that is not enough, because you need to create a mandate as well otherwise on each invoice 3DS will be required
you can learn more about that here https://stripe.com/docs/india-recurring-payments
It is now more confusing, our customers are mostly from US and Europe.
Do you have any POC for this that i can refer because we have to fix this ASAP
its entirely blocking our payment system
as I said, you need to follow the steps I shared
if you don't really care about the India Recurring Payments then you can ignore my last comment about that
but using l_i.p_i.client_secret and p_s_i.client_secret is the way to go
let me read the documenting again because when we integrated it was clearly mentioned that we have to use setupIntent
We have to collect payment information before subscription
This is the kind of UI we have to build
that's really not recommended
I shared the guide with you in the link above
Can I create Subscription with attached code ?
I'd suggest running/testing it and finding out.
Last time stripe community suggested me to use setupIntent
Its really confusing and documentation is not even proper
Sorry to hear that was your experience.