#treciokas

1 messages · Page 1 of 1 (latest)

nocturne brookBOT
ember ravine
#

HI there, can you share with me the subscription ID?

wicked charm
#

Subscription failed to create, so no ID was created

#

req_bwDKYnCdNJbyCN this is request ID

ember ravine
#

It fails because you set payment_behavior: "error_if_incomplete", This tells Stripe to fail the subscription creation if the first invoice's payment requests authentication (aka 3DS).

#

I'd suggest you change it to default_incomplete

wicked charm
#

ok i will try with this option

#

Thanks

#

Now subscription is marked as incomplete: sub_1MYlT8L6x5zHDLJP2zQ4gvrt

ember ravine
#

You can't just confirm it from backend, you need to bring your customer to your webpage and call stripe.confirmPayment so that Stripe.js can initiate the 3ds.

wicked charm
#

3DS is showing when Stripe.js snippet is creating payment method

#

tested with this card: 4000002760003184

ember ravine
#

I don't know how you implement this page, but I'm pretty sure you call stripe.confirmCardPayment() on frontend to initiate the 3DS.

wicked charm
#

we are calling stripe.confirmCardSetup

ember ravine
wicked charm
#

so our workflow is: call stripe.confirmCardSetup to get payment method token, then in the backend we are creating customer, attaching payment method to this customer, then creating subscription for this customer

ember ravine
#

For Indian users, Using SetupIntent API for recurring payment requires lots of params (see the link I posted earlier). My personal option is that you should just use Checkout (the easier solution), or create a Subscription first, and confirm the payment_intent of the first invoice in frontend (you can find the integration details here https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements)

wicked charm
#

ok now i understood. It should be a different flow for India users 😦

ember ravine
#

Unfortunately more efforts are required for Indian users in order to comply with RBI directives.

wicked charm
#

ok thanks Jack for help!

ember ravine
#

No problem!