## 渠道专属配置

### 1 UP渠道

#### 1.1 H5支付

 预授权接口专属字段

| 参数      | 类型   | 必填 | 描述 |
| --------- | ------ | ---- | ---- |
| tradeFrom | String | 是    | "H5" |

#### 1.2 APP支付

 预授权接口专属字段

| 参数      | 类型   | 必填 | 描述  |
| --------- | ------ | ---- | ----- |
| tradeFrom | String | 是    | "APP" |

应答报文:

| 参数     | 类型   | 必填 | 描述                                                      |
| -------- | ------ | ---- | ------------------------------------------------------- |
| RespCode | String | 是    | 应答码 00-成功                                           |
| RespMsg  | String | 是    | 应答消息                                                 |
| tn       | String | 否    | 交易流水号,RespCode为“00”时返回,作为调起 sdk 支付的参数 |

获取到tn后,根据APP对接文档调用SDK进行支付。

```javascript
测试卡:

Credit card:6250947000000014
mobile:+852 11112222
cvn2:  123
exp date: month 12 year 33
SMS Code on PC: 111111
SMS Code on Mobile: 123456

Debit card:6223164991230014
mobile:13012345678
PIN: 111111
cvn2:  123
exp date: month 12 year 33
SMS Code on PC:111111
SMS Code on Mobile:123456

Credit card:8171999927660000
mobile:+852 11112222
cvn2:  123
exp date: month 12 year 30
SMS Code on PC: 111111
SMS Code on Mobile: 123456
```

### 2 FC渠道

#### 2.1 H5支付

 预授权接口专属字段

| 参数      | 类型   | 必填 | 描述 |
| --------- | ------ | ---- | ---- |
| tradeFrom | String | 是    | "H5" |

```javascript
测试卡:

卡号: 4761340000000019
有效期: 1217
CVV2: 830

卡号: 5204730000002555
有效期: 1225
CVV2: 123
```

### 3 RevPay渠道

#### 3.1 H5支付

 预授权接口专属字段

| 参数      | 类型   | 必填 | 描述     |
| --------- | ------ | ---- | -------- |
| tradeFrom | String | 是    | "H5"     |
| bankCode  | String | 是    | 银行代码。测试环境填写TEST0021,生产环境[点击此处查看详情](RevPayBankCode.md) |

```javascript
测试卡信息:
FPX Test Card
Payment ID : 3
Bank Code : TEST0021
Bank Name : SBI Bank A
User Id : 1234
Password : 1234
```

### 4 India_Netbanking渠道

#### 4.1 H5支付

 预授权接口专属字段

| 参数      | 类型   | 必填 | 描述 |
| --------- | ------ | ---- | ---- |
| tradeFrom | String | 是    | "H5" |
| bank_code | String | 是    |[见列表](India_Netbanking_BankCode.md) |
| email | String | 是    | Must contain valid e-mail of customer|
| phone | String | 是    | Must contain valid phone number of customer |
| firstname | String | 是    | Customer first name |
| lastname | String | 是    | Customer last name |
| address | String | 是    | address |
| zip_code | String | 是    | ZIP code |
| city | String | 是    | City |
| country | String | 是    |Country code in ISO 3166|
| state | String | 是    | State code in ISO 3166-2, required for USA and Canada |
| document_id | String | 是    | Document ID of the consumer.|