|
@ -7,6 +7,20 @@ |
|
|
|
|
|
|
|
|
### Request |
|
|
### 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 |
|
|
```json |
|
|
{ |
|
|
{ |
|
|
"amount": "100", |
|
|
"amount": "100", |
|
@ -30,6 +44,11 @@ |
|
|
* authorization是用来在付款页面调用braintree js sdk,用户填信用卡信息 |
|
|
* authorization是用来在付款页面调用braintree js sdk,用户填信用卡信息 |
|
|
* [HTML付款页面示例](./static/braintree-sample.html) |
|
|
* [HTML付款页面示例](./static/braintree-sample.html) |
|
|
|
|
|
|
|
|
|
|
|
|参数名|M/C/O|描述| |
|
|
|
|
|
|---|---|---| |
|
|
|
|
|
|authorization|M|令牌,用于调用braintree JS SDK| |
|
|
|
|
|
|transactionNo|M|订单号| |
|
|
|
|
|
|
|
|
```json |
|
|
```json |
|
|
{ |
|
|
{ |
|
|
"result": |
|
|
"result": |
|
@ -64,6 +83,23 @@ |
|
|
|SAMSUNG Pay|samsung_pay_card| |
|
|
|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 |
|
|
```json |
|
|
{ |
|
|
{ |
|
|
"addressLine1": "123 main st", |
|
|
"addressLine1": "123 main st", |
|
|