Browse Source

Merge branch 'test' of https://git.allpayx.com/OpenAPI/common into test

benson 5 years ago
parent
commit
852c286f65
4 changed files with 44 additions and 51 deletions
  1. 15 48
      AllPay_Integration_Specification_CH.md
  2. 2 2
      AllPay_Integration_Specification_EN.md
  3. 26 0
      countrycode.md
  4. 1 1
      paymentSchema.md

+ 15 - 48
AllPay_Integration_Specification_CH.md

@@ -68,7 +68,7 @@ GoAllPay 为客户提供统一的API接入,以帮助客户实现快速、安
 
 3.跳转型消费接口响应报文
 
-  商户需要提供一个 http/https 协议的接口,包含在参数里传递给GoAllPay,即 backURL。GoAllPay 服务器在支付完成后,会以 Post 方式调用 backURL,通知支付结果。商户在接收到通知后,需返回“OK”。
+  商户需要提供一个 http/https 协议的接口,包含在参数里传递给GoAllPay,即 backURL。GoAllPay 服务器在支付完成后,会以 Post 方式调用 backURL,通知支付结果(JSON)。商户在接收到通知后,需返回“OK”。
 
   如果没有收到商户返回“OK”,GoAllPay将会过一段时间后重新推送,时间间隔为[15, 15, 30, 180, 1800, 3600, 7200, 14400, 14400],单位为秒。
 
@@ -272,7 +272,7 @@ GoAllPay 为客户提供统一的API接入,以帮助客户实现快速、安
 
 3.响应报文
 
-  商户需要提供一个 http/https 协议的接口,包含在参数里传递给GoAllPay,即 backURL。GoAllPay 服务器在支付完成后,会以 Post 方式调用 backURL,通知支付结果。商户在接收到通知后,需返回“OK”。
+  商户需要提供一个 http/https 协议的接口,包含在参数里传递给GoAllPay,即 backURL。GoAllPay 服务器在支付完成后,会以 Post 方式调用 backURL,通知支付结果(JSON)。商户在接收到通知后,需返回“OK”。
 
   如果没有收到商户返回“OK”,GoAllPay将会过一段时间后重新推送,时间间隔为[15, 15, 30, 180, 1800, 3600, 7200, 14400, 14400],单位为秒。
 
@@ -579,8 +579,6 @@ GoAllPay 为客户提供统一的API接入,以帮助客户实现快速、安
 | signType      | String(10)   | M    | MD5或SHA256                                                  |
 | signature     | String(32)   | M    | 采用 MD5或SHA256 签名                                        |
 
-### 
-
 ## 5.渠道专属配置
 
 ### 5.1 WX渠道
@@ -915,8 +913,6 @@ CVC: 737
 | --------- | ------ | ---- | ---- |
 | tradeFrom | String | M    | "H5" |
 
-
-
 #### 5.10.2   签约绑卡支付
 
 绑卡分两种模式
@@ -968,7 +964,6 @@ CVV2: 123
 | bankCode  | String | M    | 银行代码 |
 
 ```javascript
-
 测试卡的信息:
 FPX Test Card
 Payment ID : 3
@@ -988,36 +983,26 @@ Password : 1234
 | --------- | ------ | ---- | ------- |
 | tradeFrom | String | M    | "H5" |
 
-
-
-
-
 ### 5.13 PO渠道
 
-#### 5.13.1  
+#### 5.13.1 H5支付
 
  消费接口专属字段
 
 | 参数              | 类型   | 属性 | 描述                                                         |
 | ----------------- | ------ | ---- | ------------------------------------------------------------ |
 | tradeFrom         | String | M    | "H5"                                                         |
-| countrycode       | String | M    | The 2-letter ISO country code of the country in which the payment instrument is issued/operated (e.g. DE). For details see payment method specific documentation. |
+| countrycode       | String | M    | The 2-letter ISO country code of the country in which the payment instrument is issued/operated (e.g. DE). For details see [payment method specific documentation](https://git.allpayx.com/OpenAPI/common/src/master/countrycode.md). |
 | accountholdername | String | M    | The account holder - minimum of 3 characters, up to 100 charac- ters. |
-| tag               | String | M    | eps, giropay, p24, astropaycard, astropaydirect, aura, baloto, bancodobrasil, bitpay,  boleto, directpay, dragonpay, enets, ideal, itau, mybank, paysbuy, payu, poli, qiwi, safetypay,                        sepadirectdebit, singpost, skrill, trustpay, webpay |
+| tag               | String | M    | 取值如下:directpay, boleto, webpay, trustpay, skrill, singpost, sepaddmodela, safetypay, qiwi, p24, poli, paysafecard, mybank, itau, ideal, hipercard, giropay, eps, enets, dragonpay, bancodobrasil, baloto, aura, payu |
 
-## 
-
-当 tag 为 astropaycard,astropaydirect,paysafecard时 需要增加下面字段
+##### 5.13.1.1 当 tag 为 paysafecard 时,还需另外增加下面字段
 
 | 参数        | 类型   | 属性 | 描述                                                         |
 | ----------- | ------ | ---- | ------------------------------------------------------------ |
 | consumerref | String | M    | Unique reference identifying the consumer, has to satisfy the regular expression [A-Za-z0-9.%,&/+*$-]{1,20} |
 
-
-
-当 tag 为 aura,baloto,bancodobrasil,boleto,hipercard,itau,webpay时 需要增加下面字段
-
-
+##### 5.13.1.2 当 tag 为 aura, baloto, bancodobrasil, boleto, hipercard, itau, webpay 时,还需另外增加下面字段
 
 | 参数        | 类型   | 属性 | 描述                                                         |
 | ----------- | ------ | ---- | ------------------------------------------------------------ |
@@ -1028,47 +1013,33 @@ Password : 1234
 | zipcode     | String | M    | Consumer's zip/postal code                                   |
 | dob         | String | O    | Date of birth, format YYYYMMDD                               |
 
-
-
-当 tag 为 dragonpay,enets,singpost时 需要增加下面字段
-
-
+##### 5.13.1.3 当 tag 为 dragonpay, enets, singpost 时,还需另外增加下面字段
 
 | 参数  | 类型   | 属性 | 描述                                                   |
 | ----- | ------ | ---- | ------------------------------------------------------ |
 | email | String | M    | RFC compliant email address of the account holder      |
 | phone | String | M    | Valid international phone number of the account holder |
 
-
-
-当 tag 为 giropay,directpay时 需要增加下面字段
+##### 5.13.1.4 当 tag 为 giropay, directpay 时,还需另外增加下面字段
 
 | 参数 | 类型   | 属性 | 描述                                                        |
 | ---- | ------ | ---- | ----------------------------------------------------------- |
 | bic  | String | O    | Valid BIC (8 or 11 alphanumeric letters) of consumer’s bank |
 
-
-
-当 tag 为 payu,p24,safetypay时 需要增加下面字段
+##### 5.13.1.5 当 tag 为 payu, p24, safetypay 时,还需另外增加下面字段
 
 | 参数  | 类型   | 属性 | 描述                                              |
 | ----- | ------ | ---- | ------------------------------------------------- |
 | email | String | M    | RFC compliant email address of the account holder |
 
-
-
-当 tag 为 qiwi,p24,safetypay时 需要增加下面字段
-
-
+##### 5.13.1.6 当 tag 为 qiwi 时,还需另外增加下面字段
 
 | 参数        | 类型   | 属性 | 描述                                                         |
 | ----------- | ------ | ---- | ------------------------------------------------------------ |
 | mobilephone | String | M    | Valid international Russian mobile phone number identifying the QIWI destination account to pay out to (excluding plus sign or any other international prefixes, including a leading 7 for Russia, 11 digits in total, e.g. 71234567890). |
 | siteid      | String | M    | Unique site identifier, forwarded to qiwi. Required for clients serving multiple points of sale. |
 
-
-
-当 tag 为 skrill时 需要增加下面字段
+##### 5.13.1.7 当 tag 为 skrill 时,还需另外增加下面字段
 
 | 参数    | 类型   | 属性 | 描述                                              |
 | ------- | ------ | ---- | ------------------------------------------------- |
@@ -1077,16 +1048,12 @@ Password : 1234
 | zipcode | String | O    | Consumer's zip/postal code                        |
 | city    | String | O    | Consumer’s city                                   |
 
-
-
-当 tag 为 sepaddmodela时 需要增加下面字段
+##### 5.13.1.8 当 tag 为 sepaddmodela 时,还需另外增加下面字段
 
 | 参数  | 类型   | 属性 | 描述                                              |
 | ----- | ------ | ---- | ------------------------------------------------- |
-| email | String | O    | RFC compliant email address of the account holder |
-| iban  | String | O    | Valid IBAN                                        |
-
-
+| email | String | M    | RFC compliant email address of the account holder |
+| iban  | String | M    | Valid IBAN                                        |
 
 ## 6.应答码 
 

+ 2 - 2
AllPay_Integration_Specification_EN.md

@@ -65,7 +65,7 @@ This field is a list of common fields, sending, every channel needs some channel
 
 3.Jump transformation Purchase interface response message
 
-  The merchant needs to provide an HTTP/HTTPS protocol interface that is included in the parameters passed to the SDK, the backURL. After the payment is complete, the AllPay server will call the backURL as a POST, informing the payment result. When merchant receive the notification, the merchant is required to return "OK".
+  The merchant needs to provide an HTTP/HTTPS protocol interface that is included in the parameters passed to the SDK, the backURL. After the payment is complete, the AllPay server will call the backURL as a POST, informing the payment result (JSON). When merchant receive the notification, the merchant is required to return "OK".
 
   If we didn't receive "OK" from merchant,AllPay will resend the response message to merchant.Time interval is[15, 15, 30, 180, 1800, 3600, 7200, 14400, 14400], the unit is second.
 
@@ -272,7 +272,7 @@ Parameters as follows:
 
 3.Response message
 
-  The merchant needs to provide an HTTP/HTTPS protocol interface that is included in the parameters passed to the SDK, the backURL. After the payment is complete, the AllPay server will call the backURL as a POST, informing the payment result. When merchant receive the notification, the merchant is required to return "OK".
+  The merchant needs to provide an HTTP/HTTPS protocol interface that is included in the parameters passed to the SDK, the backURL. After the payment is complete, the AllPay server will call the backURL as a POST, informing the payment result (JSON). When merchant receive the notification, the merchant is required to return "OK".
 
   If we didn't receive "OK" from merchant,AllPay will resend the response message to merchant.Time interval is[15, 15, 30, 180, 1800, 3600, 7200, 14400, 14400], the unit is second.
 

File diff suppressed because it is too large
+ 26 - 0
countrycode.md


+ 1 - 1
paymentSchema.md

@@ -13,5 +13,5 @@ Serial number |Channel name  |Channel ID|Remark
  10 | Alipay HK |APHK| Alipay HK 
  11 | RevPay |RevPay| Malaysia Online Banking 
  12 | Gcash |Gcash| Alipay Philippine wallet 
- 13 | PO |PO| PO 
+ 13 | PPRO |PO| PPRO