Browse Source

payin API parameters descriptions

master
frank 2 years ago
parent
commit
e0f5b71675
  1. 36
      braintree.md

36
braintree.md

@ -7,6 +7,20 @@
### Request
|参数名|M/C/O|描述|
|---|---|---|
|callbackUrl|O|客户端网页同步回调地址,支付完成后同步跳转,显示支付结果|
|ipnUrl|M|交易结果异步通知地址|
|amount|M|金额,字符串|
|currency|M|标价币种|
|settleCurrency|M|结算币种|
|description|O|订单描述|
|note|O|附言|
|reference|M|商户系统交易请求流水号|
|terminal|M|交易类型|
|vendor|M|支付/收款方式|
|verifySign|API请求签名|
```json
{
"amount": "100",
@ -30,6 +44,11 @@
* authorization是用来在付款页面调用braintree js sdk,用户填信用卡信息
* [HTML付款页面示例](./static/braintree-sample.html)
|参数名|M/C/O|描述|
|---|---|---|
|authorization|M|令牌,用于调用braintree JS SDK|
|transactionNo|M|订单号|
```json
{
"result":
@ -64,6 +83,23 @@
|SAMSUNG Pay|samsung_pay_card|
|参数名|M/C/O|描述|
|---|---|---|
|deviceData|M|braintree sdk获取到的客户端设备信息,参见html示例代码|
|paymentMethod|M|支付方式|
|paymentMethodNonce|M|支付令牌,从braintree sdk获取得到|
|transactionNo|M|订单号,从secure-pay返回得到|
|addressLine1|O|address line 1|
|addressLine2|O|address line 2|
|city|O|city|
|state|O|state|
|postalCode|O|邮编|
|country|O|country|
|countryCode|O|countryCode, e.g. CN|
|email|O|email|
|firstName|O|firstName|
|lastName|O|lastName|
```json
{
"addressLine1": "123 main st",

Loading…
Cancel
Save