数据类型:Payment
字段 | 类型 | 含义 | 建议 | 备注 |
---|---|---|---|---|
payment_id | String | 支付流水号 | 必须 | |
method | String | 支付方式 | 必须 | 枚举值: card:卡支付 ewallet:电子钱包 bank_transfer:银行转帐 cash_on_delivery:货到付款 bnpl:先买后付 other:其它 |
channel | String | 支付渠道 | 必须 | 例如 worldpay、credorax、airwallex、apple_pay、checkout、ebanx、adyen、stripe、paypal、pacypay、alipay、wechat_pay、other |
amount | Amount | 支付金额 | 必须 | |
card | Card | 支付银行卡 | 卡支付时必须 | |
is_coupon_used | Boolean | 是否使用优惠券 | 建议 | 枚举值: true:是 false:否 |
coupons | Array | 使用的优惠券列表 | 建议 | |
Coupon | 优惠券 | 建议 |
{
"payment_id": "NHF8736274",
"method": "card",
"channel": "paypal",
"amount": {
"currency": "CNY",
"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": "三",
"middle_name": "",
"last_name": "张",
"nickname": "HZhang"
},
"debit_or_credit": "credit",
"issuer_region": "CN",
"expiration_date": "1998-01-01"
},
"is_coupon_used": true,
"coupons": [
{
"coupon_id": "NOHF08938",
"coupon_name": "双十一限时购",
"coupon_count": 1,
"begin_time": 1596358039000,
"expire_time": 1616358039000,
"coupon_type": "discount",
"coupon_rate": 0.85,
"coupon_threshold": "10",
"cash_back_amount": {
"currency": "CNY",
"amount_local": 6.8,
"amount_usd": 1,
"amount_cny": 6.8
}
}
]
}