GMC Serial Payment Interface
Request Body Parameters
application/jsonCommon Request Parameters
bizContent
customerObjectOptionalgoodsArrayOptionalrequestIdString(64)RequiredUnique request number, globally uniquecaptureDelayHoursintRequired0=immediate capture, -1=manual capture, local payments do not support manual capturemerchantTransactionIdString(64)RequiredMerchant order number, unique identifier for the order, can be used for subsequent order queries and reconciliationamountString(12)RequiredTransaction amount, precision depends on currency, see Transaction CurrenciescurrencyString(3)RequiredTransaction currency, ISO 4217 three-letter currency code, see Transaction CurrenciestipsAmountString(12)OptionalTips amount, already included in amount, recorded separately here for informationshopperIpString(128)RequiredUser IP address for order placement, supports IPv4 formatpaymentMethodString(64)RequiredSpecified payment method, provided by PingPongtimeExpireString(10)OptionalOrder expiration time. 1 minute to 3 days (less than 1 minute defaults to 1 minute, more than 3 days defaults to 3 days), defaults to 3 days if not provided. Timestamp format, unit: secondstradeCountryString(2)OptionalTransaction country two-letter code, defaults to countries supported by PingPong, see Country CodesnotificationUrlString(255)OptionalCustom notification URL for this transaction result by the merchant.
URL recommendation: use a complete URL with a publicly reachable domain name. Standard web ports are recommended (HTTPS defaults to 443 and HTTP defaults to 80). Ensure the URL can reliably receive PingPongCheckout asynchronous notifications.remarkString(255)OptionalMerchant extended fields, can be used to specify certain parameters, will be returned as is in the response
请求报文示例
{
"accId": "PPX_ACC_202312001",
"clientId": "PPX_MCH_20230001",
"signType": "SHA256",
"sign": "9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08",
"version": "1.0",
"event": "PAY",
"requestTime": "1683530496000",
"bizContent": {
"requestId": "SAAS_REQ_20231212001",
"captureDelayHours": 0,
"merchantTransactionId": "MCH_ORDER_20231212001",
"amount": "100.00",
"currency": "USD",
"tipsAmount": "5.00",
"shopperIp": "192.168.1.100",
"paymentMethod": "ShowCode",
"timeExpire": "1683616896",
"tradeCountry": "US",
"notificationUrl": "https://merchant.com/notify",
"remark": "测试订单",
"customer": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+8613800138000",
"birthDate": "1990-01-01"
},
"goods": [
{
"name": "iPhone 15",
"description": "智能手机",
"sku": "IPHONE15-128G",
"unitPrice": "100.00",
"number": "1",
"imgUrl": "https://example.com/iphone15.jpg",
"virtualProduct": "N"
}
]
}
}Responses Body Parameters
application/jsonCommon Response Parameters
bizContent
requestIdString(64)RequiredUnique request numbertransactionIdString(64)OptionalPingPong transaction ID
响应报文示例
{
"accId": "PPX_ACC_202312001",
"clientId": "PPX_MCH_20230001",
"signType": "SHA256",
"sign": "BAEA4D56D885D6BD449BFFA2D9F117ECEDA662C85197A19050CA0C18CC64B871",
"event": "PAY_ACCEPTANCE",
"code": "0",
"description": "受理成功",
"requestTime": "1683530497000",
"bizContent": {
"requestId": "SAAS_REQ_20231212001",
"transactionId": "PPX_TXN_202312120001"
}
}