returnUrl
provided in the checkout options.
returnUrl
. They will be automatically forwarded when the user is brought back.returnUrl
, a clientToken
is passed as a query parameter:
clientToken
from the query parameters and use it to render Universal Checkout. The checkout will automatically continue the payment flow.
onCheckoutComplete
will be called like for any other payment methods.
If the payment failed, or if the user cancelled their payment, an error message will be shown and Universal Checkout will once again present the configured payment methods to the user. At this point, the flow has been restarted and the user will be able to attempt another payment with a payment method of their choice.
You can use onCheckoutFail
to listen to the cancellation and restore your UI to its initial state.
redirect.forceRedirect
to true.