#sankyo_api

1 messages ¡ Page 1 of 1 (latest)

meager widgetBOT
#

👋 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/1344603386762367079

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

ionic trout
#

I think that is expected for on-session payments yes:

It requires authentication for one-off and other on-session payments.

north phoenix
#

Thank you I'll try to off-session payments.

meager widgetBOT
north phoenix
#

I tried off-session payment intent, but had an error.

Stripe::PaymentIntent.create(
  {
    amount:,
    currency: CURRENCY,
    customer: option[:stripe_customer_id],
    capture_method: MANUAL_CAPTURE_METHOD,
    description: option[:description],
    payment_method: option[:stripe_payment_method_id],
    metadata: option[:metadata],
    off_session: true,
    confirm: true
  }

The error was,

Your card was declined. This transaction requires authentication.

Is there any way to perform 3DS authentication only during setup intent, and not when confirming payment intent?

shut plinth
north phoenix
#

req_3gp4PNmVYSw7xR

shut plinth
#

I real life this will not normally happen, and you can simulate a more relalistic scenario with "Authenticate unless set up" card - 4000002500003155

north phoenix
#

I tried this card 4000002500003155

#

But, I got the same error if I used off_session payment.

#

When I used on_session payment, I got the status requires_action, but I already completed 3DS actions.

#

off_session request req_bDtAKY8Ux6H9W6
on_session request req_vlqpsmR7q4TUvY

shut plinth
#

This off_session request still uses the 0094 card.

#

You need to create a new PaymentMethod with SetupIntent with the new 3155 card .

north phoenix
#

sorry.

meager widgetBOT
wind python
#

hi! I'm taking over this thread. let me know if you have other questions!