Determining the checkout's status
Learn how to check the status of a Prebuilt Checkout
Last updated
Learn how to check the status of a Prebuilt Checkout
Last updated
The exposes getStatus()
. This function can be used to determine the status of a .
The function returns a status
that indicates the state of the modal
and the customer’s currentStep
in the experience:
modal
The following are the possible modal
status values:
pending
: The has not yet been created
inactive
: The checkout-session identifier has been created and the modal is initialized
active
: The is displayed to the customer
failed
: The modal window cannot be displayed to the customer
aborted
: The customer closed the modal window
finished
: The customer successfully provided payment and submitted the order
currentStep
The following are the possible currentStep
values:
addressInfo
: The customer is in the
shippingChoice
: The customer is in the
paymentDetails
: The customer is in the