Data Type: Payment
Parameter | Type | Description | Required/Optional | Notes |
---|---|---|---|---|
payment_id | String | Payment Serial Number | required | |
method | String | Payment Method | required | enumeration: card ewallet bank_transfer cash_on_delivery bnpl other |
channel | String | Payment Channel | required | example: worldpay、credorax、airwallex、apple_pay、checkout、ebanx、adyen、stripe、paypal、pacypay、alipay、wechat_pay、other |
amount | Amount | Payment Amount | required | |
card | Card | Payment Card | conditionally required: required when paying by card | |
is_coupon_used | Boolean | Coupons Used or not | optional (recommended) | enumeration: true false |
coupons | Array | List of Coupons Used | optional (recommended) | |
Coupon | Coupons | optional (recommended) |
{
"payment_id": "NHF8736274",
"method": "card",
"channel": "paypal",
"amount": {
"currency": "USD",
"amount_local": 68,
"amount_usd": 10,
"amount_cny": 68
},
"card": {
"card_bin": "622207",
"last_four_digits": "1234",
"card_number_length": 16,
"card_token_id": "NFctuV7400",
"holder_name": {
"first_name": "Pierre",
"middle_name": "",
"last_name": "Laurent",
"nickname": "Snochy"
},
"debit_or_credit": "credit",
"issuer_region": "CN",
"expiration_date": "1998-01-01"
},
"is_coupon_used": true,
"coupons": [
{
"coupon_id": "NOHF08938",
"coupon_name": "Limited Time Discount Coupon",
"coupon_count": 1,
"begin_time": 1596358039000,
"expire_time": 1616358039000,
"coupon_type": "discount",
"coupon_rate": 0.85,
"coupon_threshold": "10",
"cash_back_amount": {
"currency": "USD",
"amount_local": 6.8,
"amount_usd": 1,
"amount_cny": 6.8
}
}
]
}