Skip to content

HostedCardElementOptions

Options for elements.create("hostedCard").

export interface HostedCardElementOptions extends BaseElementOptions
NameTypeDescription
cardCheckoutCardCheckoutFrom startCardCheckout(). Keep it for a reload: each call makes a new checkout.
returnUrl?stringWhere the form brings the customer back to, as an absolute http(s) URL. Defaults to cardCheckout.returnUrl, then this page. referenceNumber is added to it, so handleRedirectResult() can finish the payment there.

Also has everything BaseElementOptions has.