支付订单

事件类别:order_payment

  • order_id[* String]:订单号
  • payment[* Object 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[* Object Amount]:支付金额
      • currency[* String]:原始金额货币类型,3 字母编码,符合 ISO 4217 标准
      • amount_local[* Double]:原始金额
      • amount_usd[Double]:金额(美金),将原始金额经过汇率换算后的美金金额,(条件必须:如果接入的是非 CN 站点则必须)
      • amount_cny[Double]:金额(人民币),将原始金额经过汇率换算后的人民币金额,(条件必须:如果接入的是 CN 站点则必须)
    • card[Object Card]:支付银行卡,卡支付时必须
      • card_bin[* String]:卡 bin
      • last_four_digits[* String]:卡最后四位
      • card_number_length[* Integer]:卡号长度
      • holder_name[Object Name]:持卡人名称
        • first_name[String]:名
        • middle_name[String]:中间名
        • last_name[String]:姓
        • nickname[String]:昵称
      • debit_or_credit[String]:卡类型,枚举值
        • debit:储蓄卡 / 借记卡
        • credit:信用卡
      • issuer_region[String]:发卡国家或地区,两位国家码,符合 ISO 3166 标准
      • expiration_date[String]:过期时间,格式:YYYY-MM ,例如 1998-01
    • is_coupon_used[Boolean]:是否使用优惠券,枚举值
      • true:是
      • false:否
    • coupons[Array Coupon]:使用的优惠券列表
      • coupon_id[* String]:优惠券 ID
      • coupon_name[* String]:优惠券名称
      • coupon_count[* Integer]:优惠券数量
      • begin_time[* Long]:开始时间,时间戳(毫秒),UTC, Jan 1, 1970
      • expire_time[* Long]:结束时间,时间戳(毫秒),UTC, Jan 1, 1970
      • coupon_type[String]:优惠券类型,枚举值
        • fixed_discount:满减
        • discount:折扣
        • threshold:门槛
        • other:其它
      • coupon_rate[Double]:优惠券折扣率,范围为 0 - 1.00 ,9 折即为 0.9 ,95 折即为 0.95 ,以此类推
      • coupon_threshold[String]:优惠券门槛
      • cash_back_amount[Object Amount]:返还金额
        • currency[* String]:原始金额货币类型,3 字母编码,符合 ISO 4217 标准
        • amount_local[* Double]:原始金额
        • amount_usd[Double]:金额(美金),将原始金额经过汇率换算后的美金金额,(条件必须:如果接入的是非 CN 站点则必须)
        • amount_cny[Double]:金额(人民币),将原始金额经过汇率换算后的人民币金额,(条件必须:如果接入的是 CN 站点则必须)
  • billing[Object Billing]:账单信息
    • address[* Object Address]:账单地址
      • country[* String]:国家,两位国家码,符合 ISO 3166 标准
      • region[* String]:省 / 州 / 地区
      • city[* String]:城市
      • district[String]:区县
      • detail[String]:详细地址
      • zip_code[String]:邮政编码
    • phone[* Object Phone]:账单手机号
      • country_code[* Integer]:国家区号,符合国际电信联盟 E.164 标准,不含 + 号和前缀 0,如 86
      • phone_number[* String]:手机号 / 电话号码,不含 + 号和前缀
    • email[String]:账单邮箱
    • recipient[* Object Name]:账单收件人
      • first_name[String]:名
      • middle_name[String]:中间名
      • last_name[String]:姓
      • nickname[String]:昵称
{
    "order_id": "NX348566DIHD",
    "payment": {
        "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,
            "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
                }
            }
        ]
    },
    "billing": {
        "address": {
            "country": "CN",
            "region": "浙江省",
            "city": "杭州市",
            "district": "余杭区",
            "detail": "文一西路海创园 18 幢",
            "zip_code": "310000"
        },
        "phone": {
            "country_code": 86,
            "phone_number": "18700001112"
        },
        "email": "[email protected]",
        "recipient": {
            "first_name": "三",
            "middle_name": "",
            "last_name": "张",
            "nickname": "HZhang"
        }
    }
}