#yogeshinvideo

1 messages · Page 1 of 1 (latest)

fresh shellBOT
pseudo folio
#

Can you share a request ID ?

#

For subscription creation request

hazy cedar
#

req_d20k0fltVPhgoB

pseudo folio
#

Hmm the invoice is still open which is why the subscription is in incomplete state

hazy cedar
#

Yes, but why the Payment Intent status was requires_payment_method?

#

When I've attached the payment method Id

pseudo folio
hazy cedar
#

I tried with 3 different payment methods, same error every time.

pseudo folio
#

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?

hazy cedar
#

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.

oak comet
#

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?

hazy cedar
#

seti_1O9UmgBQzictNbDFn6PttSmE

oak comet
#

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

hazy cedar
#

got it, i’ll check and get back

oak comet
hazy cedar
#

yeah, 2nd time I was checking with Invoice payment link from Stripe Dashboard

oak comet
#

Gotcha

fresh shellBOT
hazy cedar
#

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

oak comet
#

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