Create checkout payments
| Event Group | Event Identification |
|---|---|
| checkout_payment | checkout_payment/create |
When the user starts payment at checkout , the event will be sent
Request Headers
- X-Shopline-Topic string requiredThe unique identifier for the event.Example:
orders/edited - X-Shopline-Hmac-Sha256 string requiredThe signature of the request. Upon receiving the request, you must verify the signature to confirm the authenticity and integrity of the data.Example:
XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM= - X-Shopline-Shop-Domain string requiredThe store domain.Example:
example.myshopline.com - X-Shopline-Shop-Id string requiredThe store ID.Example:
1610418123456 - X-Shopline-Merchant-Id string requiredThe merchant ID.Example:
2000001234 - X-Shopline-API-Version string requiredThe API version.Example:
v20250601 - X-Shopline-Webhook-Id string requiredThe ID of this Webhook event.Example:
b54557e48a5fbf7d70bcd043
Request Body
- amount doublePayment amount
- checkout_id stringGuanlian logo for associated checkout
- checkout_token stringGuanlian for associated checkout
- created_at stringCreation timeExample:
2024-08-31T02:20:26+08:00 - currency stringPayment currency
- error_info stringIf payment fails , error message will be includedExample:
{ errorCode : payment error code , channelCode : payment channel error code , channelMsg : payment channel error reason } - gateway stringPayment gateway name
- id stringJiezhang logo for checkout payment slip
- payment_method_name stringPayment method name
- processed_at stringFinish timeExample:
2024-08-31T02:20:26+08:00 - status stringPayment slip status : init : payment initial state , processing : payment , not return clear results , fail : payment failure , ready : payment completed
- transaction_id stringId for associated transaction list
- update_at stringUpdate timeExample:
2024-08-31T02:20:26+08:00
Status Codes
After receiving a webhook notification from SHOPLINE, you must respond with the following format:
HTTP/1.1 200 OKFor more information about how to subscribe to webhooks and webhook response rules, refer to Webhook overview.
Was this article helpful to you?