PurseHeadlessCheckoutHooks
Properties
delegate3DSChallenge?
optional delegate3DSChallenge?: boolean;
Shows the 3DS challenge of partners running it in-browser (Lyra, Axepta) in a popup instead of a
modal inside the checkout, falling back to the modal when the browser blocks the popup. The final
redirection then carries challengedInPopup: true.
onAfterValidate?
optional onAfterValidate?: () => Promise<void>;
Optional argument to pass a callback to invoke after submission
Returns
Promise<void>
onBeforeValidate?
optional onBeforeValidate?: (split) => Promise<void>;
Parameters
| Parameter | Type | Description |
|---|---|---|
split | PaymentSplit[] | The current payment split. Each entry describes an amount and the payment source covering it. |
Returns
Promise<void>
redirectionHandler?
optional redirectionHandler?: (redirectionData) => Promise<void>;
Optional argument to handle the redirection
Parameters
| Parameter | Type |
|---|---|
redirectionData | RedirectionHandlerParams |
Returns
Promise<void>