Function useWaitForCheckoutCompleted
- useWaitForCheckoutCompleted(__namedParameters?: { onProvisionFailed?: ((err?: any) => void); onProvisionStart?: (() => void); onProvisionSucceeded?: ((subscription?: null | Subscription) => void) }): { isAwaitingCheckout: boolean; provisionStatus: ProvisionStatus }
-
Parameters
-
__namedParameters: { onProvisionFailed?: ((err?: any) => void); onProvisionStart?: (() => void); onProvisionSucceeded?: ((subscription?: null | Subscription) => void) } = {}
-
Optional
onProvisionFailed?: ((err?: any) => void)
-
- (err?: any): void
-
Returns void
-
Optional
onProvisionStart?: (() => void)
-
Optional
onProvisionSucceeded?: ((subscription?: null | Subscription) => void)
Returns { isAwaitingCheckout: boolean; provisionStatus: ProvisionStatus }
-
isAwaitingCheckout: boolean
-