Order Creation and Payment Interface
Request Body Parameters
application/jsonCommon Request Parameters
bizContent
customerObjectOptionalgoodsArrayOptionalrequestIdString(64)RequiredUnique request number, globally uniquerequestTimeString(13)RequiredMerchant-side request time. Timestamp, in millisecondscaptureDelayHoursintConditional- 0 indicates immediate capture
- -1 indicates manual capture, after successfully calling the order creation API, you also need to call the pre-authorization capture, not supported for local payments
deviceSnString(64)RequiredDevice serial number, used to specify the target POS machine for paymentdeviceModelString(64)RequiredDevice model, used to specify the target POS machine for paymentmerchantTransactionIdString(64)RequiredOrder number on the merchant's website, a unique identifier for the order, can be used for subsequent order inquiries and reconciliationamountString(12)RequiredTransaction amount, the precision depends on the currency, please refer to the appendix Transaction CurrenciescurrencyString(3)RequiredTransaction currency, ISO 4217 three-letter code, specific supported currencies see appendix Transaction CurrenciescashierDeviceIdStringRequiredUnique ID of the cash register deviceshopperIpString(128)RequiredUser IP address for placing an order, supports IPv4 formatpaymentMethodString(64)RequiredSpecified payment method, optional values:Card Purchase- Card swipe paymentQR-POSScan- B scan C paymentQR Payment- C scan B paymentOctopus- Octopus card payment (Hong Kong)
timeExpireString(10)RequiredOrder expiration time. 1 minute to 3 days (if less than 1 minute, it defaults to 1 minute; if more than 3 days, it defaults to 3 days). If not provided, it defaults to 3 days. Timestamp format, unit: seconds, example value: 1683530496tradeCountryString(2)RequiredUsed to specify the transaction country ISO A2 code (ISO 3166-1 alpha-2 standard), defaults to countries supported by PingPong, two-letter codes see appendix 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 body
请求报文示例
{
"accId": "2018092520455210043243",
"bizContent": {
"requestId": "REQ-15ZSIRMPKT1748591387687",
"requestTime": "1748591387687",
"timeExpire": "1748591687",
"captureDelayHours": "0",
"deviceSn": "NEC300067041",
"deviceModel": "N950S",
"amount": "121.23",
"currency": "MYR",
"paymentMethod": "QR Payment",
"cashierDeviceId": "111",
"shopperIp": "47.98.1.1",
"merchantTransactionId": "PMT-15ZSIRMPKT1748591387687",
"tradeCountry": "MY",
"notificationUrl": "https://test-acquirerpay.pingpongx.com/qa/result.html",
"remark": "payment test"
},
"clientId": "2018092520455210043",
"sign": "C578137C7009700927502B1EAFB425893980832DDFC02434AD957FD364D9DE9D",
"signType": "SHA256",
"version": "1.0"
}Responses Body Parameters
application/jsonCommon Response Parameters
bizContent
transactionIdString(64)RequiredPingPong transaction numbermerchantTransactionIdString(64)RequiredMerchant website transaction numberqrCodeStringOptionalQR code encoding. Used for QR code payment scenarios, this code can be converted into a QR code image for displayqrUrlStringOptionalQR code address. Used for QR code payment scenarios, to display the QR codeqrCodeExpiredString(10)OptionalQR code expiration time, in timestamp format, unit: secondsremarkString(255)OptionalMerchant extended field
响应报文示例
{
"accId": "2018092520455210043243",
"bizContent": {
"qrCodeExpired": "1748591687",
"qrCode": "00020201021226580014A000000615000101065016640226100101570045614O01BDLA00015204539953034585406121.235802MY5925PINGPONG PAYMENT MALAYSIA6002MY62630120OS2025053001100002010311O01BDLA00010620OS20250530011000020182648305FDCB588DA5B1EDC5588660398CF3D8D3036F54F99A8B1710D4B04DBE5B066304FB33",
"merchantTransactionId": "PMT-15ZSIRMPKT1748591387687",
"remark": "payment test",
"transactionId": "OS202505300010000201"
},
"clientId": "2018092520455210043",
"code": "002000",
"description": "Transaction processing"
}