Payment

Data Type: Payment

ParameterTypeDescriptionRequired/OptionalNotes
payment_idStringPayment Serial Numberrequired
methodStringPayment Methodrequiredenumeration:
card
ewallet
bank_transfer
cash_on_delivery
bnpl
other
channelStringPayment Channelrequiredexample: worldpay、credorax、airwallex、apple_pay、checkout、ebanx、adyen、stripe、paypal、pacypay、alipay、wechat_pay、other
amountAmountPayment Amountrequired
cardCardPayment Cardconditionally required: required when paying by card
is_coupon_usedBooleanCoupons Used or notoptional (recommended)enumeration:
true
false
couponsArrayList of Coupons Usedoptional (recommended)
CouponCouponsoptional (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,
        "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
            }
        }
    ]
}