Interface CheckoutOpenOptions

interface CheckoutOpenOptions {
    mode?: CheckoutMode;
    onSuccess?: (data: CheckoutSuccessData) => void;
    onCancel?: () => void;
    returnUrl?: string;
}

Properties

How to open the checkout:

  • redirect — navigate the current tab (default)
  • popup — open in a new browser window

Do not use an iframe/modal — ClickPay blocks framed payment pages.

onSuccess?: (data: CheckoutSuccessData) => void

Called after the contribution session is successfully created.

onCancel?: () => void

Called if the user closes or cancels the checkout.

returnUrl?: string

URL to navigate to after a successful redirect-mode checkout. Appended as ?returnUrl=… to the hosted checkout URL.