#zaelech_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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',
]);
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
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.
Oh this is a test?
You should never test in live mode
That's actually against our TOS
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.
You didnt' pass off_session in this confirmation request: https://dashboard.stripe.com/logs/req_1ecVcrOTAfQZu2
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You did in the creation request: https://dashboard.stripe.com/logs/req_J6HhYQq5cd2X9I
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
And it declined as expected
I have to add "off_session": "true" in my request ?
You did not
You only did in the creation request
But not when you went to confirm a second time
Yes so for fix my bug I have to add that in the confirm, correct ?