#m awais m sharif
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
what do you mean by SPA?
SPAIN?
https://stripe.com/docs/payments/afterpay-clearpay
United States, Canada, United Kingdom, Australia, New Zealand
single page application like Vue
In the case of Afterpay, the user needs to be redirected to the Afterpay website. So how we can do that in Single page application?
Hi there ๐ jumping in as my teammate needed to step away. Our checkout process handles redirecting the customer to the Afterpay UI. When you confirm the payment, you provide a return_url parameter, which the customer is sent to once they've completed the authentication process.
https://stripe.com/docs/payments/afterpay-clearpay/accept-a-payment?platform=web&ui=API
But that's the issue. In my single-page application (SPA), if I redirect, I will lose all the user data I have collected so far, and I need to perform a few actions after the payment is received.