Interface: OneClickCheckoutProps
Interface for the input parameters of useOneClickCheckout.
Properties
productId
• productId: number
The ID of the product.
Defined in
hooks/useOneClickCheckout.tsx:12
quantity
• Optional quantity: number
The quantity of the product to be added to the cart. Defaults to 1.
Defined in
hooks/useOneClickCheckout.tsx:17
redirect
• Optional redirect: boolean
A boolean value that determines whether to redirect the user to the cart page after adding the product. Defaults to true.