#m awais m sharif

1 messages ยท Page 1 of 1 (latest)

pulsar wagonBOT
hardy bronze
#

๐Ÿ‘‹ happy to help

#

what do you mean by SPA?

#

SPAIN?

raven schooner
#

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?

terse radish
#

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

Learn how to accept Afterpay (also known as Clearpay in the UK), a payment method in the US, CA, UK, AU, and NZ.

raven schooner
#

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.