|
@@ -175,10 +175,12 @@ pay_result,为 json 字符串,格式如下:
|
|
|
|
|
|
报文说明:
|
|
报文说明:
|
|
|
|
|
|
-- state: "success"代表成功, "cancel"代表用户取消操作,"fail"代表失败,"query"代表 app 需要调用查询接口来确认订单状态
|
|
|
|
-- paymentSchema: 支付渠道, "APMP"代表支付宝, "WX"代表微信
|
|
|
|
-- orderNum: 订单号
|
|
|
|
-- errorDetail: 错误详情
|
|
|
|
|
|
+| 参数 | 说明 |
|
|
|
|
+| ------------- | :----------------------------------------------------------: |
|
|
|
|
+| state | "success"代表成功, "cancel"代表用户取消操作, "fail"代表失败 |
|
|
|
|
+| paymentSchema | 印度本地支付:"EB", "APMP"代表支付宝, "WX"代表微信,"APP"代表ApplePay |
|
|
|
|
+| orderNum | 订单号 |
|
|
|
|
+| errorDetail | 错误详情 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -188,7 +190,7 @@ pay_result,为 json 字符串,格式如下:
|
|
|
|
|
|
该接口为接入商家提供交易查询的功能。
|
|
该接口为接入商家提供交易查询的功能。
|
|
|
|
|
|
- 2 .请求报文格式
|
|
|
|
|
|
+2. 请求报文格式
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -208,7 +210,7 @@ pay_result,为 json 字符串,格式如下:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-1. 响应报文格式
|
|
|
|
|
|
+3. 响应报文格式
|
|
|
|
|
|
| 参数 | 类型 | 属性 | 描述 |
|
|
| 参数 | 类型 | 属性 | 描述 |
|
|
| ------------- | ---------- | ---- | ------------------------------------------------------------ |
|
|
| ------------- | ---------- | ---- | ------------------------------------------------------------ |
|
|
@@ -231,11 +233,11 @@ pay_result,为 json 字符串,格式如下:
|
|
|
|
|
|
##### 4.5 退款交易接口
|
|
##### 4.5 退款交易接口
|
|
|
|
|
|
-1.接口功能说明
|
|
|
|
|
|
+1. 接口功能说明
|
|
|
|
|
|
该接口为接入商家提供交易退款的功能。
|
|
该接口为接入商家提供交易退款的功能。
|
|
|
|
|
|
-2.请求报文格式
|
|
|
|
|
|
+2. 请求报文格式
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -256,7 +258,7 @@ pay_result,为 json 字符串,格式如下:
|
|
| signType | String(3) | M | MD5 |
|
|
| signType | String(3) | M | MD5 |
|
|
| signature | String(32) | M | 采用 MD5 签名 |
|
|
| signature | String(32) | M | 采用 MD5 签名 |
|
|
|
|
|
|
-3.响应报文格式
|
|
|
|
|
|
+3. 响应报文格式
|
|
|
|
|
|
| 参数 | 类型 | 属性 | 描述 |
|
|
| 参数 | 类型 | 属性 | 描述 |
|
|
| --------- | ---------- | ---- | ---------------------------------------------- |
|
|
| --------- | ---------- | ---- | ---------------------------------------------- |
|
|
@@ -278,11 +280,11 @@ pay_result,为 json 字符串,格式如下:
|
|
|
|
|
|
##### 4.6. 退款查询接口
|
|
##### 4.6. 退款查询接口
|
|
|
|
|
|
-1.接口说明
|
|
|
|
|
|
+1. 接口说明
|
|
|
|
|
|
该接口为接入商家提供退款查询的功能。
|
|
该接口为接入商家提供退款查询的功能。
|
|
|
|
|
|
-2.请求报文格式
|
|
|
|
|
|
+2. 请求报文格式
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -302,7 +304,7 @@ pay_result,为 json 字符串,格式如下:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-1. 响应报文格式
|
|
|
|
|
|
+3. 响应报文格式
|
|
|
|
|
|
| 参数 | 类型 | 属性 | 描述 |
|
|
| 参数 | 类型 | 属性 | 描述 |
|
|
| ------------- | ---------- | ---- | ------------------------------------------------------------ |
|
|
| ------------- | ---------- | ---- | ------------------------------------------------------------ |
|
|
@@ -333,11 +335,11 @@ pay_result,为 json 字符串,格式如下:
|
|
|
|
|
|
| 序号 | 名称 | 长度 | 类型 | 参数名称 | 备注 |
|
|
| 序号 | 名称 | 长度 | 类型 | 参数名称 | 备注 |
|
|
| ---- | ---------- | ---- | ---- | ---------------------- | ------------------------------------------------------------ |
|
|
| ---- | ---------- | ---- | ---- | ---------------------- | ------------------------------------------------------------ |
|
|
-| | 1 | 姓名 | 32 | 文本 | trxn_firstname |
|
|
|
|
|
|
+| 1 | 姓名 | 32 | 文本 | trxn_firstname | This is name of the customer who is doing the transaction. |
|
|
| 2 | 邮箱 | 40 | 文本 | trxn_email_id | this is email id of the customer who is doing transaction. |
|
|
| 2 | 邮箱 | 40 | 文本 | trxn_email_id | this is email id of the customer who is doing transaction. |
|
|
| 3 | 电话 | 20 | 文本 | trxn_phone | Phone number of the customer. |
|
|
| 3 | 电话 | 20 | 文本 | trxn_phone | Phone number of the customer. |
|
|
| 4 | 优惠券选项 | 1 | 文本 | trxn_is_coupon_enabled | If the value is 0 then customer will not be able to see the coupons. If the value is 1 then customer will be able see the coupons and able to select the coupons |
|
|
| 4 | 优惠券选项 | 1 | 文本 | trxn_is_coupon_enabled | If the value is 0 then customer will not be able to see the coupons. If the value is 1 then customer will be able see the coupons and able to select the coupons |
|
|
-| 5 | 客户id | 10 | 文本 | unique_id | This is customer’s unique id.不能超过10位 |
|
|
|
|
|
|
+| 5 | 客户id | 10 | 文本 | unique_id | This is customer’s unique id. No more than ten digits. |
|
|
|
|
|
|
##### 5.2 WX渠道
|
|
##### 5.2 WX渠道
|
|
|
|
|
|
@@ -372,7 +374,7 @@ pay_result,为 json 字符串,格式如下:
|
|
|
|
|
|
| Parameter | Type | Required | Description | Sample |
|
|
| Parameter | Type | Required | Description | Sample |
|
|
| --------- | ---------- | -------- | ------------------------------------------------------------ | -------------------------------------- |
|
|
| --------- | ---------- | -------- | ------------------------------------------------------------ | -------------------------------------- |
|
|
-| Sample | String(10) | O | The default is 12h. Please contact Alipay Technical Support if you need to use other values. Max value is 15d. This parameter controls the valid time from login to completion. | 5m 10m 15m 30m 1h 2h 3h 5h 10h 12h 1d. |
|
|
|
|
|
|
+| timeout | String(10) | O | The default is 12h. Please contact Alipay Technical Support if you need to use other values. Max value is 15d. This parameter controls the valid time from login to completion. | 5m 10m 15m 30m 1h 2h 3h 5h 10h 12h 1d. |
|
|
|
|
|
|
|
|
|
|
|
|
|