Skip to main content
WEBHOOK

Overview

This page documents webhook gatePaymentWebhook. The full schema, parameters, and examples are rendered from the linked OpenAPI or webhook definition above. GatePay sends asynchronous notifications to the merchant callback URL when Gate payment order status changes (bizType is PAY).

Notes

Trigger Scenarios

  • When the order status changes (payment success, payment timeout, cancellation, closure, and similar events), GatePay sends a notification to the callback URL configured at merchant registration
  • If delivery fails, see retry rules in Notifications Overview.
Scope: Orders placed through hosted checkout, web or in-app launch, and similar flows where the user pays with a Gate payment account (bizType is PAY). See Payments for integration guidance.

Message Structure

Example Message

bizStatus Enumeration

data Field Reference

Callback Example

Payment success (bizStatus=PAY_SUCCESS)

Order closed (bizStatus=PAY_CLOSE)

Payment error (bizStatus=PAY_ERROR)

Body

application/json
bizType
enum<string>
required

Business type; always PAY (non-address payment order status change).

Available options:
PAY
bizId
string
required

Prepaid order ID.

bizStatus
enum<string>
required

Order status: PAY_SUCCESS payment succeeded; PAY_CLOSE timed out or closed; PAY_ERROR payment error.

Available options:
PAY_SUCCESS,
PAY_ERROR,
PAY_CLOSE
data
string
required

Order data as a JSON string; parsed structure see gatePaymentData.

client_id
string

Merchant client_id that created the order.

gatePaymentData
object

Parsed order details from data. For non-address payments, use orderAmount to determine the paid amount.

description
any

Response

200 - application/json

HTTP 200 indicates the merchant successfully received the notification.

Response body returned by the merchant after receiving the notification.

returnCode
string
required

Return status code; SUCCESS indicates success.

returnMessage
string | null

Return message; may be empty on success.