Overview
-
Create a Session: Create a Checkout Session on your server with a specific amount for the customer’s order.
-
Initialize Checkout components: Pass the session’s
client_secret
to your storefront and inititalize Checkout with the it. Create the desired components. -
Display order confirmation: After payment completion, the Checkout component will emit an event indicating that the payment was successful. Show a success message or redirect the customer to an order confirmation page.
-
Fulfill order: Listen for the
checkout_session.completed
API event on your server. Once received, you can safely fulfill the customer’s order.
Sends checkout request
Creates Checkout Session
Returns Checkout Session
Returns
client_secret
Initializes Bias Checkout components
Customer completes payment
Your application notifies the customer payment is complete
Session complete event
Sends checkout request
Creates Checkout Session
Returns Checkout Session
Returns
client_secret
Initializes Bias Checkout components
Customer completes payment
Your application notifies the customer payment is complete
Session complete event
Client
Server
Bias API
Bias Checkout