Import
Usage
Return Type: UseCheckoutModalReturnType
The hook returns an object with the following properties:
Properties
triggerCheckout
(settings: CheckoutSettings) => void
Opens the Checkout modal with the specified parameters.
Parameters:
The settings object can include the following properties:
The
creditCardCheckout object includes:
The
orderSummaryItems array contains objects with:
closeCheckout
() => void
Closes the Checkout modal.
settings
CheckoutSettings | undefined
The current settings configuration for the Checkout modal.