returnUrls
returnUrls(
input): {cancelUrl:string;successUrl:string; } |null
The addresses the payment provider sends the shopper back to. They are absolute on the page’s own origin and carry no order id and no token: the order id does not exist yet when they are sent, and a secret in an address would reach the provider, its logs and the browser history. The confirmation finds its order in the kit’s own storage instead.
confirmationHref and cartHref are the holder’s order-confirmation and cart links (a path such as /shop/order). With no cart link the shopper is sent back to the page they paid from.
Returns null when there is no confirmation page to come back to.
Parameters
Section titled “Parameters”cartHref
Section titled “cartHref”string | undefined
confirmationHref
Section titled “confirmationHref”string | undefined
current
Section titled “current”string
origin
Section titled “origin”string
Returns
Section titled “Returns”{ cancelUrl: string; successUrl: string; } | null