#lujie-payment-element

1 messages Β· Page 1 of 1 (latest)

whole seal
#

πŸ‘‹ Happy to help

#

πŸ‘‹ Happy to help

glass harness
#

Hi river, the user can close Wechat QR Code, so we need cancel page to redirect

#

other pay can redirect to new page, but wechat qr code show in same page

#

if i close the QR Code, the return_url will be redirected

whole seal
glass harness
#

let me try, thank you very much

whole seal
#

No problem. Happy to help πŸ™‚

glass harness
#

payment_intent=pi_3L6UXGHm9lqBSyxX19fEDBLf&payment_intent_client_secret=pi_3L6UXGHm9lqBSyxX19fEDBLf_secret_XTlqeVGKdVqABd4vQQHcnraGq&redirect_status=succeeded

#

hi river, when i close it ,the redirect_status is succeeded, how to check if it is canceled

whole seal
glass harness
#

got it

whole seal
#
To handle users closing QR Code modals, at the server-side handler for your return_url, inspect the Payment Intent’s status to see if it’s succeeded or still requires_action (meaning the user has closed the modal without paying), dealing with each case as needed.
glass harness
#

thank you very much, solved it already

#

πŸ‘πŸ»

whole seal
#

No problem! Glad to hear that it works πŸ™‚