#Arctic

1 messages · Page 1 of 1 (latest)

last frostBOT
pulsar barn
#

👋 happy to help

vagrant cloud
#

ayo, thx

#

the code snippet is from my CheckoutForm.js file in the handleSubmit section when user presses "pay now" button

#

as context

pulsar barn
#

ok so you're getting redirected whether the payment fails or succeeds?

vagrant cloud
#

exactly

pulsar barn
#

is this in live mode or in test mode?

vagrant cloud
#

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

pulsar barn
#

ok taking a look

vagrant cloud
#

ty

#

it seems to happen with other payment methods aswell that redirect you to a payment page

pulsar barn
#

so basically this is expected

#

what you need to know is that we will add some query param to the retrun_url

vagrant cloud
#

i see

pulsar barn
#

?payment_intent=pi_xxx&payment_intent_client_secret=pi_xxx_secret_yyy&redirect_status=failed

vagrant cloud
#

okay great!

#

ill handle redirect failing on my confirmation page

pulsar barn
#

the redirect_status will give you an idea on whether the PI failed or succeeded

vagrant cloud
#

aight

#

thank you