#Arctic
1 messages · Page 1 of 1 (latest)
👋 happy to help
ayo, thx
the code snippet is from my CheckoutForm.js file in the handleSubmit section when user presses "pay now" button
as context
ok so you're getting redirected whether the payment fails or succeeds?
exactly
is this in live mode or in test mode?
live mode
i chose giroPay, put in my name
then got redirected to the giropay payment page
hit cancel
and the got redirected to the confirmation url
ok taking a look
ty
it seems to happen with other payment methods aswell that redirect you to a payment page
so basically this is expected
what you need to know is that we will add some query param to the retrun_url
i see
?payment_intent=pi_xxx&payment_intent_client_secret=pi_xxx_secret_yyy&redirect_status=failed
the redirect_status will give you an idea on whether the PI failed or succeeded