#zaelech_api

1 messages ¡ Page 1 of 1 (latest)

balmy crowBOT
#

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

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

magic basinBOT
marble mural
#

This is my code to confirm the payment intent

#

$stripe = new \Stripe\StripeClient($client_secret);

    // Confirm a PaymentIntent
    $confirmPaymentIntent = $stripe->paymentIntents->confirm($payment['transactionKey'], [
        'payment_method' => $paymentMethodId,
        'return_url' => 'https://www.tabupay.com/confirm',
    ]);
vital niche
#

Not sure I undersatnd

#

Looks like a decline by the bank

#

Those happen sometimes

#

Customer will need to contact their bank to see what happened

marble mural
#

No this not my problem

#

I would like to implement a retry system.

#

The scenario I tested is that I make a first payment_intent with a payment_method configured off_session.
Then I make a new payment_intent with the same payment_method, but temporarily blocked.
As seen with support yesterday, I try a new payment after unblocking using the confirm method.
Except that my payment_intent isn't validated and ends up in require_actions status, as if the card wasn't off_session.

vital niche
#

Oh this is a test?

#

You should never test in live mode

#

That's actually against our TOS

marble mural
#

Sorry but when I asked support how to test this scenario, they explained that it wasn't feasible.

#

And for me, it's crucial to test this type of scenario.

vital niche
#

And it declined as expected

marble mural
#

I have to add "off_session": "true" in my request ?

vital niche
#

You did not

#

You only did in the creation request

#

But not when you went to confirm a second time

marble mural
#

Yes so for fix my bug I have to add that in the confirm, correct ?

vital niche
#

It needs to be set each time

#

Yes

#

If you want it to just decline when authentication is required, then set off_session = true in the confirm