To start a hosted checkout experience in your app, request a new session by sending a POST request to the Create checkout endpoint.
- Construct a
CreateCheckoutRequestwith the following required information:
- Set the required
X-Clover-Merchant-Idheader with the value of the merchant UUID (mId).
- Set the
Authorizationheader with a valid OAuth token.
- Send the POST request to
The response includes the following elements:
href- A URL for the checkout session
checkoutSessionId- A unique session identifier
createdTime- Time the session was created (in Unix time)
expirationTime- Time when the checkout session will expire (in Unix time)
If you have configured webhooks, one is sent when the customer finishes checkout.
Hosted checkout sessions are intended to be short-lived. Session tokens expire 15 minutes after creation.
Updated 6 months ago