#faruk
1 messages · Page 1 of 1 (latest)
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
i cant see any req_XXX in object
Sorry, confused myself. Just the sub_xxx ID
sub_1Mlr1ZSDnAylgH8hwCmTH6W1
Seems expected given that the invoice payment failed: https://dashboard.stripe.com/test/events/evt_1Mlr1aSDnAylgH8hbKvFZedF
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Looks like 3DS/auth was requested. You need to the have the user confirm the associated PI on the invoice and carry out the auth request from their bank with Stripe.js: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#complete-payment
where should i add this element?
is there any solution to get payment withount customer confirmation
In your client facing front-end application
Not really no. Banks can request auth for any and all payments, so your integration needs to be able to handle that
this is my front-end javascript code, i dont understand where i should add confirm payment code
Out of interest, where are you referencing this code from? It's pretty outdated
You should be following this guide: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
You'd create the Subscription in PHP backend, and return the associated Payment/Setup Intent to your JS front-end. There you can initialise an Element, collect payment information form your customer and attempt payment, which handles the 3DS/auth part too.
Otherwise, I'd maybe recommend looking at Checkout which handles all of this for you: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=checkout