#sanjay_api

1 messages ¡ Page 1 of 1 (latest)

quaint bridgeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1377550872577310812

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

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.

crimson oxide
#

In a real payment scenario though, generally, there's no way to preemptively know whether a card would be requested 3DS authentication. Whether a customer is required to go through 3DS authentication is decided by the card issuer. That said, certain countries have regulations in place that requires customer to go through 3DS for online payments.

gleaming ridge
#

this is the flow i am following:

  1. create invoice using default payment method (in the above case it is this test card which always trigger 3DS authentication)
  2. then create invoice item for this invoice id with given amount, description
  3. finalize this invoice
  4. pay this invoice programatically using invoices.pay() API

Is there any way i can know that the payment requires 3DS authentication always, before step 4?

crimson oxide
#

No, there's no way.

#

Prior to creating the invoice, you should ensure the payment method used was saved through Setup Intent to be used for off_session usage. This will allow you to charge the saved payment method later, like creating an invoice.

gleaming ridge
#

i am saving the payment method using checkout session with subscription mode as i have want to create a subscription for the customer

crimson oxide
#

I see. But your payment flow will still need to be able to bring the customer back online if 3DS authentication is required by their card issuer.