#yogeshinvideo
1 messages · Page 1 of 1 (latest)
req_d20k0fltVPhgoB
Hmm the invoice is still open which is why the subscription is in incomplete state
Yes, but why the Payment Intent status was requires_payment_method?
When I've attached the payment method Id
Ah looks like the payment attempt failed
https://dashboard.stripe.com/logs/req_favBnxsL8oetVx
which means you can't re-use the same payment method and need to provide a new one
I tried with 3 different payment methods, same error every time.
It seems like the payments are triggering 3DS/Authentication
Can you provide more details on the flow you've built and what docs you're following?
Sure, We're creating a setup intent for the user first. Once user finished the setup intent we create a subscription with the payment_method created from SetupIntent
Create Customer -> Create Setup Intent -> Create Subscription.
Hi there 👋 I'm helping look into this. I'm still looking, but one thing standing out to me is that this appears to be a livemode transaction. Did this work as expected in testmode before going live?
Can you share the ID of the Setup Intent you used with that PM as well?
I see the Payment Method was created here:
https://dashboard.stripe.com/logs/req_2szYlGJ66wXL8G
but so far I'm not finding a related Setup Intent for that.
seti_1O9UmgBQzictNbDFn6PttSmE
It also looks like this payment involves India, which has additional regulations compared to other geographies which makes handling Subscriptions a bit more effort:
https://stripe.com/docs/india-recurring-payments?integration=subscriptions
I think since you're working with a Setup Intent directly to create a Mandate, that you'll need to adjust your flow so that it populates the payment_method_options.card.mandate_data_options hash on the Setup Intent:
https://stripe.com/docs/api/setup_intents/create#create_setup_intent-payment_method_options-card-mandate_options
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
got it, i’ll check and get back
I'm also only seeing 2 payment attempts for the Payment Intent associated with the Invoice for that Subscription, and it looks like the authentication challenge flow was not completed the second time.
yeah, 2nd time I was checking with Invoice payment link from Stripe Dashboard
Gotcha
So the current flow is implemented like this is because on our checkout page has option to change the plan as well as you can apply coupon which changes the checkout amount. That’s why we are not sending Amount in setupIntent
Hm, in that case, my thinking is that the Setup Intent likely isn't necessary or beneficial to use. If you don't have sufficient details about the amount that will be charged when the Subscription is created, I don't think you'd be able to use the Setup Intent to create a mandate for that.
Do you have other criteria for your flow that would benefit from using a Setup Intent? If not, I'm thinking it'd be smoother to create the Subscription and use it to collect payment method details (instead of trying to collect those details first).
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements