接入文档
版本:2.0.6
鉴权
IP白名单策略
对商户发起的交易请求,商户必须提供发起查询/交易的服务器的IP,由我方设置IP白名单.
所有不在IP白名单内的服务器发起的交易请求,都会视为非授权请求,予以拦截.
请求的鉴权
对商户发起的交易请求,采⽤bearer token的⽅式鉴权。我们会分配给客户access key(TOKEN),不同环境 access key 串会是:ak_test_xxxxxxx(测试使⽤)和ak_prd_xxxxx(正式环境使⽤)的格式。
access key (TOKEN) 分为查询TOKEN和交易TOKEN两种,命名规则遵循以上描述.
- 查询TOKEN: 用于查单接口,查询余额接口等仅查询使用.
- 交易TOKEN: 用于发起 代收/代付 交易 使用.
回调的验签
商户收到回调通知需要校验签名,并确定订单和⾦额是否与⾃⼰的订单记录匹配。 我们会给客户分配⼀个secret key,发送回调通知的签名规则如下:
payload: timestamp=${timestamp}&body=${body};
http header 中
- x-op-signature 是使⽤ secret key 对 payload 取 HmacSHA256哈希值。
- timestamp 取⾃消息头: x-op-timestamp:1525872629832
请求body的字符串规则:
- content-type 为 application/json 时,取整个 json 字符串(⽬前只考虑application/json 的情况);
交易安全
为了保障交易安全,特别是代付下单请求,平台目前会执行以下两种策略:
代付金额大于 5000 peso,平台会通过Telegram 机器人在商户号对应的群里推送提醒消息.
代付金额大于 10,000 peso, 平台会通过Telegram 机器人在商户号对应的群里,推送确认消息,商户需要手动操作审批代付请求.
手动审批代付请求
在Telegram(以下简称TG)商户群里, 商户需要手动审批代付请求.
TG机器人推送的审批消息,商户需要手动点击 "确认"按钮,以确认此代付订单.
当点击"确认"按钮后,会再次提醒用户二次确认,防止误操作.
同样,拒绝代付单请求,也需要商户进行二次确认.
代收(Payment)
支付方式(PaymentMethod-type)
目前平台支持 :
| 国家 | 国家代码 | 货币代码 | 支付方式(type) |
|---|---|---|---|
| 菲律宾 | ph | php | qrph, gcash, maya |
| 泰国 | th | thb | prompt, thailand_personal_transfer |
| 印度尼西亚 | id | idr | qris, linkaja, dana, ovo, cimb |
| 巴西 | br | brl | direct_debit(巴西的type可以直接填direct_debit,也可以为空) |
| 巴基斯坦 | pk | pkr | jazzcash , easypaisa , pak_bank |
| 印度 | in | inr | wake |
泰国支付方式
prompt : QR Prompt pay- 银行扫码
thailand_personal_transfer : Card-to-card gateway - 卡转卡转账
注意: 泰国代收,必须填写付款人姓名和付款人银行卡号, 其中银行卡号填写在customer.phone 字段
创建支付订单
- 注意: 创建支付订单,必须使用 [交易TOKEN]
POST /api/v1/payment
请参考右侧的示例代码,以及对照下方的 代收业务对象
请求示例(菲律宾)
curl -X POST "https://{API_BASE_HOST}/api/v1/payment" \
-H "Content-Type: application/json" \
-H "Authorization: bearer YOUR_ACCESS_KEY" \ // Transaction TOKEN must be used here
-d '{
"ref_trade_id": "Merchant order ID",
"amount": "100.00",
"currency": "php",//Currency
"payment_method": {
"type": "gcash" //qrph, maya ,gcash one of the supported options
},
"customer": {
"first_name": "Tom",
"last_name": "Jerry",
"phone": "09123456789"
},
"description": "shopping",
"callback_url": "https://www.dear_customer.com/webhook",
"return_url": "https://www.merchant_site.com"
}'
请求示例(泰国)
curl -X POST "https://{API_BASE_HOST}/api/v1/payment" \
-H "Content-Type: application/json" \
-H "Authorization: bearer YOUR_ACCESS_KEY" \ // Transaction TOKEN must be used here
-d '{
"ref_trade_id": "Merchant order ID",
"amount": "100.00",
"currency": "thb",
"payment_method": {
"type": "prompt" //thailand_personal_transfer ,prompt one of the supported options
},
"customer": {
"first_name": "Tom", // Payer name, required
"last_name": "Jerry",
"phone": "09123456789" // Special requirement for Thailand channels: the payer bank card number must be filled in this field, required
},
"description": "shopping",
"callback_url": "https://www.dear_customer.com/webhook",
"return_url": "https://www.merchant_site.com"
}'
请求示例(印尼)
curl -X POST "https://{API_BASE_HOST}/api/v1/payment" \
-H "Content-Type: application/json" \
-H "Authorization: bearer YOUR_ACCESS_KEY" \ // Transaction TOKEN must be used here
-d '{
"ref_trade_id": "Merchant order ID",
"amount": "100.00",
"currency": "idr",
"payment_method": {
"type": "linkaja" //qris, linkaja, dana, ovo, cimb one of the supported options
},
"customer": {
"first_name": "Tom",
"last_name": "Jerry",
"phone": "09123456789"
},
"description": "shopping",
"callback_url": "https://www.dear_customer.com/webhook",
"return_url": "https://www.merchant_site.com"
}'
请求示例(巴西)
curl -X POST "https://{API_BASE_HOST}/api/v1/payment" \
-H "Content-Type: application/json" \
-H "Authorization: bearer YOUR_ACCESS_KEY" \ // Transaction TOKEN must be used here
-d '{
"ref_trade_id": "Merchant order ID",
"amount": "100.00",
"currency": "idr",
"payment_method": {
"type": "" // Keep an empty string value, or fill in direct_debit
},
"customer": {
"first_name": "Tom",
"last_name": "Jerry",
"phone": "09123456789"
},
"description": "shopping",
"callback_url": "https://www.dear_customer.com/webhook",
"return_url": "https://www.merchant_site.com"
}'
请求示例(巴基斯坦)
curl -X POST "https://{API_BASE_HOST}/api/v1/payment" \
-H "Content-Type: application/json" \
-H "Authorization: bearer YOUR_ACCESS_KEY" \ // Transaction TOKEN must be used here
-d '{
"ref_trade_id": "Merchant order ID",
"amount": "100.00",
"currency": "pkr",
"payment_method": {
"type": "jazzcash" // jazzcash , easypaisa , pak_bank one of the supported options
},
"customer": {
"first_name": "Tom",
"last_name": "Jerry",
"phone": "09123456789"
},
"description": "shopping",
"callback_url": "https://www.dear_customer.com/webhook",
"return_url": "https://www.merchant_site.com"
}'
请求示例(印度)
curl -X POST "https://{API_BASE_HOST}/api/v1/payment" \
-H "Content-Type: application/json" \
-H "Authorization: bearer YOUR_ACCESS_KEY" \ // Transaction TOKEN must be used here
-d '{
"ref_trade_id": "Merchant order ID",
"amount": "100.00",
"currency": "inr",
"payment_method": {
"type": "wake" // Currently India only supports wake: app wake-up
},
"customer": {
"first_name": "Tom",
"last_name": "Jerry",
"phone": "09123456789",
"ip":"0.0.0.0" // Please make sure to pass the customer's real IP address, which helps improve the channel success rate
},
"description": "shopping",
"callback_url": "https://www.dear_customer.com/webhook",
"return_url": "https://www.merchant_site.com"
}'
响应示例
{
"id": "py_xxxxxxxxx",
"account_id": "acct_xxxxxxxxxxxxxxx",
"ref_trade_id": "xxxxxxxxxxxxxxxxxxx",
"amount": "100.00",
"currency": "php",
"fee_amount": "3.60",
"exchange_rate": "0",
"callback_url": "https://merchant_callback_url",
"return_url": "https://www.sina.com",
"description": "shopping",
"customer": {
"email": "sss@gmail.com",
"first_name": "John",
"last_name": "Steph",
"phone": "09123456789"
},
"trans_at": "1743847785446",
"status": "processing", // failed: order creation failed; processing: order created, pending payment
"object": "payment_order",
"url": "https://payment_url"
}
代收业务对象
Parameter
- 标记required的字段表示请求时必须传值
| 字段名 | 说明 | 类型 | required |
|---|---|---|---|
| ref_trade_id | 关联的商户侧交易ID | string | required |
| amount | 支付金额,基于常用单位 | string | required |
| currency | 支付币种 (对应国家的币种,菲律宾:php,泰国:thb, 印尼:idr,巴西:brl) | string | required |
| payment_method | 支付方式,见下表: payment_method | object | required |
| customer | 支付用户信息, 见下表: customer | object | required |
| status | 订单状态,详见订单状态说明 | string | |
| description | 因为什么而支付的描述信息 | string | required |
| return_url | 下单时传入的返回商家页面的 URL,完成支付后会跳转到这个地址 | string | required |
| callback_url | 回调 URL,如果请求时传了,则使用请求消息中的,否则用配置的 callback URL | string |
注意: 泰国
- 泰国支付 customer 下的 first_namne 和 last_name 必填其中一个
订单状态说明(status)
- succeeded: 支付成功, 终态.
- failed : 代收下单失败或用户支付失败, 订单失败 终态.
processing : 代收发起成功,未完成⽀付扣款. 订单中间状态.
注意: 订单终态,只有 succeeded 和 failed, 任何其他状态都是中间状态!!!
注意: 任何中间状态不能擅自修改为成功或失败,如因状态判断失误造成任何损失,责任自负!!!
payment_method
- type 表示选择的支付方式,如果选择的支付方式需要传其它参数,在后面有相应编码的 object 里传递
| 字段名 | 说明 | 类型 | required |
|---|---|---|---|
| type | 详见:支付方式类型 | string | required |
customer
| 字段名 | 说明 | 类型 | required |
|---|---|---|---|
| first_name | first_name, mid_name, last_name 至少有一项有值 | string | required |
| mid_name | 收款人中间名 | string | |
| last_name | 收款人姓氏 | string | required |
| 收款人邮箱 | string | ||
| phone | 用户手机号,涉及争议时,可能需要联系到支付人 | string | required |
| ip | 支付人 IP 地址 | string |
基于商户订单号获取⽀付订单
- 注意: 查询支付订单,使用 [查询TOKEN]
GET /api/v1/payment/ref_trade_id/{merchant_order_id}
- merchant_order_id 为商户(您的)订单号
请求示例
curl "https://{API_BASE_HOST}/api/v1/payment/ref_trade_id/1231334353434"
查询代收(⽀付)订单列表
- 注意: 查询支付订单,使用 [查询TOKEN]
GET /api/v1/payment
请求示例
curl -X GET "https://{API_BASE_HOST}/api/v1/payment" \
-G \
--data-urlencode "start=1672531200000" \
--data-urlencode "end=1672617600000" \
--data-urlencode "status=completed" \
--data-urlencode "sort_type=desc" \
--data-urlencode "page_size=10" \
--data-urlencode "start_after=abcd1234" \
--data-urlencode "end_before=wxyz5678"
响应示例
{
"has_more": true,
"sort_type": "desc",
"page_size": 2,
"start_after":
"eyJzdGFydF9hZnRlciI6InB5XzJXblY4S01DMXZNSkRDM1Iwbk00TVFyOWF6diIsImVuZF9iZWZvcmUiOiIiLCJwY
WdlX3NpemUiOjMsInBhZ2luZ190aW1lIjoxNjk3NTk4ODk2MTU1fQ==",
"data": [
{
"id": "py_xxxxxxxxxxxxx",
"account_id": "acct_1234567",
"ref_trade_id": "391",
"amount": "10.00",
"currency": "php",
"fee_amount": "0.38",
"exchange_rate": "0",
"description": "AbC",
"customer": {
"first_name": "wowo",
"last_name": "totot"
},
"trans_at": "1697370998000",
"status": "succeeded",
"object": "payment_order"
},
{
"id": "py_yyyyyyyyyy",
"account_id": " acct_1234567",
"ref_trade_id": "390",
"amount": "10.00",
"currency": "php",
"fee_amount": "0.38",
"exchange_rate": "0",
"description": "AbC",
"customer": {
"first_name": "wowo",
"last_name": "totot"
},
"trans_at": "1697368120000",
"status": "succeeded",
"object": "payment_order"
}
]
}
请求参数
| 参数 | 说明 | 类型 | required |
|---|---|---|---|
| start | 交易时间范围的起始时间,取值为时间戳,可以不传值,或者只传一个参数 | string | optional |
| end | 交易时间范围的结束时间,取值为时间戳,可以不传值,或者只传一个参数 | string | optional |
| status | 按此订单状态值查询订单 | string | optional |
| sort_type | 排序方式,desc/asc,表示按交易时间倒序或正序查询结果,默认为倒序 | string | optional |
| page_size | 每页的记录数,默认为 10 条,最大 30 条 | int | optional |
| start_after | 查询某条记录之后的一页,返回消息中的 start_after 作为参数查询下一页 | string | optional |
| end_before | 查询某条记录之前的一页,返回消息中的 end_before 作为参数查询前一页 | string | optional |
代付(disbursement)
创建代付订单
创建代付订单必须使用交易 TOKEN。
POST /api/v2/disbursement
2.x 请求使用 destination 对象,收款信息填写在 type、account_no、account_name、bank_code、ext 字段中。
请参考右侧的示例代码,以及对照下方的 代付业务对象
请求示例 (通用-PH)
type 必须与 bank_code 相同;ext 按银行实际要求填写。
# Use the Transaction TOKEN for YOUR_ACCESS_KEY.
curl -X POST "https://{API_BASE_HOST}/api/v2/disbursement" \
-H "Content-Type: application/json" \
-H "Authorization: bearer YOUR_ACCESS_KEY" \
-d '{
"ref_trade_id": "123456789",
"amount": "1000.00",
"currency": "php",
"customer": {
"first_name": "Tom",
"last_name": "Jerry",
"email": "blue@gmail.com",
"phone": "09123456789"
},
"destination": {
"type": "gcash", // 必须与bank_code 相同
"account_no": "xxxx", // 收款人银行账号
"account_name": "xxx", // 收款人银行账户姓名
"bank_code": "", // 收款银行代码
"ext": { // 收款人扩展字典
"Ext_name": "" // 根据不同国家银行的实际要求填写对应键值对
}
},
"description": "Payment for services",
"callback_url": "https://example.com/callback"
}'
请求示例 (泰国)
type 固定为 thb_bank,bank_code 填写泰国银行代码,account_name 可以为空。
# Use the Transaction TOKEN for YOUR_ACCESS_KEY.
curl -X POST "https://{API_BASE_HOST}/api/v2/disbursement" \
-H "Content-Type: application/json" \
-H "Authorization: bearer YOUR_ACCESS_KEY" \
-d '{
"ref_trade_id": "123456789",
"amount": "1000.00",
"currency": "thb",
"customer": {
"first_name": "Tom",
"last_name": "Jerry",
"email": "blue@gmail.com",
"phone": "09123456789"
},
"destination": {
"type": "thb_bank", // 代付银行类型,固定为 thb_bank
"account_no": "xxxx", // 收款人银行账号,必填
"account_name": "", // 收款人银行账户姓名,可以为空
"bank_code": "" // 收款银行代码,参考泰国银行代码表
},
"description": "Payment for services",
"callback_url": "https://example.com/callback"
}'
请求示例 (巴基斯坦)
type 支持 jazzcash、easypaisa、pak_bank;bank_code 填写收款银行代码,CNIC 填写在 destination.ext.cnic。
# Use the Transaction TOKEN for YOUR_ACCESS_KEY.
curl -X POST "https://{API_BASE_HOST}/api/v2/disbursement" \
-H "Content-Type: application/json" \
-H "Authorization: bearer YOUR_ACCESS_KEY" \
-d '{
"ref_trade_id": "123456789",
"amount": "1000.00",
"currency": "pkr",
"customer": {
"first_name": "Tom",
"last_name": "Jerry",
"email": "blue@gmail.com",
"phone": "09123456789"
},
"destination": {
"type": "pak_bank", // 代付银行类型,目前支持 jazzcash、easypaisa、pak_bank
"account_no": "xxxx", // 收款人银行账号
"account_name": "xxx", // 收款人银行账户姓名
"bank_code": "alfh", // 收款银行代码,alfh 为巴基斯坦银行代码,详见附录-巴基斯坦银行列表
"ext": { // 收款人扩展字典
"cnic": "cnic_number" // 根据银行实际要求填写收款人的 CNIC
}
},
"description": "Payment for services",
"callback_url": "https://example.com/callback"
}'
请求示例 (印度)
type 固定为 india_bank,bank_code 填写 IFSC 代码,ext.bank_name 填写收款银行名称。
# Use the Transaction TOKEN for YOUR_ACCESS_KEY.
curl -X POST "https://{API_BASE_HOST}/api/v2/disbursement" \
-H "Content-Type: application/json" \
-H "Authorization: bearer YOUR_ACCESS_KEY" \
-d '{
"ref_trade_id": "123456789",
"amount": "1000.00",
"currency": "inr",
"customer": {
"first_name": "Tom",
"last_name": "Jerry",
"email": "blue@gmail.com",
"phone": "09123456789"
},
"destination": {
"type": "india_bank", // 代付类型,目前仅支持银行卡,必填且固定为 india_bank
"account_no": "xxxx", // 收款人银行账号,必填
"account_name": "xxx", // 收款人银行账户姓名,必填
"bank_code": "", // 收款银行 IFSC 代码,必填
"ext": { // 收款人扩展字典
"bank_name": "bank_name" // 收款银行名称,必填
}
},
"description": "Payment for services",
"callback_url": "https://example.com/callback"
}'
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
)
func main() {
url := "https://{API_BASE_HOST}/api/v2/disbursement"
method := "POST"
payload := map[string]interface{}{
"ref_trade_id": "123456789",
"amount": "1000.00",
"currency": "php",
"customer": map[string]string{
"first_name": "Tom",
"last_name": "Jerry",
"email": "blue@gmail.com",
"phone": "09123456789",
},
"destination": map[string]interface{}{
"type": "gcash", // 必须与bank_code 相同
"account_no": "xxxx", // 收款人银行账号
"account_name": "xxx", // 收款人银行账户姓名
"bank_code": "", // 收款银行代码
"ext": map[string]string{ // 收款人扩展字典
"Ext_name": "", // 根据不同国家银行的实际要求填写对应键值对
},
},
"description": "Payment for services",
"callback_url": "https://example.com/callback",
}
jsonPayload, err := json.Marshal(payload)
if err != nil {
fmt.Println("Error marshalling payload:", err)
return
}
client := &http.Client{}
req, err := http.NewRequest(method, url, bytes.NewBuffer(jsonPayload))
if err != nil {
fmt.Println("Error creating request:", err)
return
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "bearer YOUR_ACCESS_KEY") // Use the Transaction TOKEN.
res, err := client.Do(req)
if err != nil {
fmt.Println("Error making request:", err)
return
}
defer res.Body.Close()
fmt.Println("Response status:", res.Status)
}
响应示例
{
"id": "dib_xxxxxxxxxxx", //Platform order ID
"ref_trade_id": "kd250324012", //Merchant order ID
"amount": "100.00", //Order amount
"currency": "php", //Currency code (lowercase)
"fee_amount": "15.00", //Fee
"status": "processing", //Order status
"description": "test", // Provided when creating the order and returned as-is
"destination": {
"type": "jazzcash",
"account_no": "0912345678",
"account_name": "comes",
"bank_code": "alfh"
},
"customer": { //Recipient information
"email": "sina@sina.com",
"first_name": "wowo",
"last_name": "tt",
"address": {
"line1": "phl"
},
"phone": "0988876786"
},
"account_id": "acct_xxxxxx", //Merchant ID (provided during account opening)
"trans_at": "1742788999663", //Order timestamp (milliseconds)
"object": "disburse_order", //Order type
"ref_channel_id": "xxxxxxxxxxxx" // Upstream channel order ID
}
创建 QRPH 代付订单
通过收款二维码原文发起菲律宾比索代付,系统自动识别 P2M 或 P2P 类型。Base URL 以实际接入环境提供的地址为准。
POST /api/v2/disbursement/qrph
创建订单使用交易 TOKEN,鉴权、商户权限、IP 白名单及回调验签沿用现有规则,参见请求的鉴权、回调的验签和回调通知。QRPH 接口统一使用上述 v2 路径,不随普通代付的版本路径变化。
请求参数
请求示例
# 使用交易 TOKEN,并将 qr_code 替换为完整的收款二维码原文。
curl -X POST "https://{API_BASE_HOST}/api/v2/disbursement/qrph" \
-H "Authorization: Bearer YOUR_ACCESS_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"ref_trade_id": "merchant_order_001",
"qr_code": "YOUR_COMPLETE_QR_CODE_PAYLOAD",
"amount": "100.00",
"currency": "php",
"callback_url": "https://merchant.example/callback",
"description": "QRPH payout",
"customer": {
"first_name": "Juan",
"last_name": "Dela Cruz",
"email": "juan@example.com",
"phone": "09171234567"
}
}'
| 字段名 | 说明 | 类型 | 必填 |
|---|---|---|---|
| ref_trade_id | 商户订单号,用于幂等识别;须在普通代付与 QRPH 代付之间保持唯一 | string | required |
| qr_code | 完整收款二维码原文,不是二维码图片、Base64 图片或链接 | string | required |
| amount | 代付金额,单位为菲律宾比索;必须大于零且能精确转换为整数分,例如 100.00 | string | required |
| currency | 传 php;PHP 也会转换为小写 | string | required |
| callback_url | 商户异步通知地址;需要通知时须显式填写,不会自动使用默认地址 | string | 可选 |
| description | 订单描述 | string | 可选 |
| customer | 可选客户信息,支持字段见下方说明 | object | 可选 |
示例中的 qr_code 为占位值,请替换为完整的收款二维码原文。无需提交 destination、institution、bank_code、银行账号或收款人名称。
customer 可省略;传入时支持 email、first_name、last_name、phone 和 address。address 支持 line1、line2、province、postal_code、country、city 字符串字段。
二维码与金额要求
系统校验二维码的 TLV 结构、CRC 和交易类型:28.00 = ph.ppmi.p2m 识别为 qrph_p2m,27.00 = com.p2pqrpay 识别为 qrph_p2p。无法识别或同时包含两种类型标识时,请求会被拒绝。
二维码含有 54 金额字段时,该金额必须与请求的 amount 数值一致;没有金额字段时使用请求金额。金额必须大于零且能精确转换为整数分,不得通过舍入丢失分以下的非零部分。例如,"1.001" 不被接受,"100.000" 可以接受。上游渠道仍可能根据其协议或交易限额拒绝交易。
商户订单号
同一商户重复提交相同的 ref_trade_id 时,沿用普通代付幂等逻辑返回已有订单。QRPH 与普通代付共用此检查,商户订单号必须在两类代付之间保持唯一。
响应与通知中的 QRPH 字段
创建及单笔查询响应示例
{
"id": "dib_example",
"refTradeId": "merchant_order_001",
"accountId": "acct_example",
"amount": "100.00",
"currency": "php",
"feeAmount": "2.00",
"status": "processing",
"destination": {
"type": "",
"accountNo": "",
"accountName": "",
"bankCode": "qrph_p2m",
"ext": {}
},
"description": "QRPH payout",
"metadata": {},
"customer": null,
"refChannelId": "",
"voucherNo": "",
"failReason": "",
"transAt": "1764115200000",
"object": "disburse_order"
}
创建和单笔查询返回相同的订单结构。示例中的 feeAmount 仅供说明,不代表固定费率。HTTP 200 不代表代付成功,须根据 status、后续查询或异步通知确认结果:processing 为处理中,succeeded 为成功终态,failed 为失败终态,其他状态处理沿用普通代付规则。
请求字段采用 snake_case;HTTP JSON 响应字段采用 camelCase,如 refTradeId、feeAmount、destination.bankCode。商户异步通知仍采用 snake_case,如 ref_trade_id、fee_amount、institution,请分别解析。
- HTTP 响应的
destination.bankCode、异步通知的institution为识别出的qrph_p2m或qrph_p2p;其他收款目标字段可能为空。 refChannelId在异步提交完成前或上游未返回关联号时可能为空,voucherNo也可能为空;failReason为失败原因,正常情况下为空。- 响应中的
customer为对象或null,对象字段为email、firstName、lastName、address、ip、phone、midName;地址邮政编码字段为postalCode。metadata当前返回空对象。 - HTTP 响应的
transAt为字符串形式的毫秒时间戳;通知的trans_at为 JSON 数值。 - 二维码原文不会返回在 API 响应或商户异步通知中。
查询 QRPH 代付订单
QRPH 沿用现有代付查单流程,统一使用以下 v2 路径。单笔查询无需请求体,返回结构见上方示例。
- 系统订单号查询:
GET /api/v2/disbursement/{id}。 - 商户订单号查询:
GET /api/v2/disbursement/ref_trade_id/{ref_trade_id}。 - 主动查单:
GET /api/v2/disbursement/check/{id},可触发状态更新、记账和商户通知。 - 分页查询:
GET /api/v2/disbursement,参数沿用查询代付订单列表,其中start、end使用毫秒时间戳。响应字段采用camelCase(hasMore、sortType、pageSize、startAfter、endBefore、data),data中的订单结构与上述单笔响应相同。
QRPH 常见错误
错误响应结构沿用错误码定义。以下为 QRPH 相关错误,具体原因以实际返回的 reason 和 message 为准。
| HTTP 状态 | reason | 说明 |
|---|---|---|
| 400 | invalid_params |
金额、二维码 TLV、CRC、类型识别或二维码金额一致性校验失败 |
| 401 | no_privilege |
商户未配置可用的对应类型代付费率 |
| 501 | unsupported_qrph_disbursement |
当前路由没有支持该 QRPH 类型的可用渠道 |
代付业务对象
Parameter
| 字段名 | 说明 | 类型 | 必填 |
|---|---|---|---|
| ref_trade_id | 关联的商户侧交易 ID | string | required |
| amount | 支付金额,基于常用单位 | string | required |
| currency | 支付币种,(对应国家的币种,菲律宾:php,泰国:thb, 印尼:idr,巴西:brl) | string | required |
| customer | 收款人信息 详情见下表 | object | required |
| destination | 代付银行及收款银行信息 详情见下表 | object | required |
| description | 下单时的描述信息 | string | required |
| status | 订单状态, 详见订单状态说明 | string | |
| callback_url | 回调 URL,如果请求时传了,则使用请求消息中的,否则用配置的 callback url | string |
订单状态说明(status)
- succeeded : 代付出款成功,订单成功 终态
- failed : 代付下单或代付出款失败, 订单失败 终态.
processing : 代付发起成功,未完成代付扣款. 订单中间状态
注意: 订单终态,只有 succeeded 和 failed, 任何其他状态都是中间状态!!!
注意: 任何中间状态不能擅自修改为成功或失败,如因状态判断失误造成任何损失,责任自负!!!
destination
代收银行及收款人信息
| 字段名 | 类型 | 含义 | required | 备注 |
|---|---|---|---|---|
| type | string | 代付银行类型 | required | 参考代付银行类型详见:附录-代付银行 |
| account_no | string | 收款账户账号 | required | 银行账户或钱包编号 |
| account_name | string | 收款账户姓名 | required | 收款人姓名 |
| bank_code | string | 银行代码 详见:附录-代付银行 | required | 代付收款人银行代码 |
| ext | object | 扩展字段 | optional | 根据不同银行或国家的需求,支持自定义键值对 |
注意: 巴基斯坦
巴基斯坦代付需要在 destination 的 ext 对象里面,增加 CNIC 项,详见: 请求示例 (巴基斯坦)
注意: 印度
印度代付需要在 destination 的 ext 对象里面,增加 bank_name 项,详见: 请求示例 (印度)
收款人信息
| 字段名 | 说明 | 类型 | 必填 |
|---|---|---|---|
| first_name | 收款人的姓名 | string | required |
| mid_name | 收款人的姓名 | string | |
| last_name | 收款人的姓名 | string | required |
| 收款人的邮箱 | string | required | |
| phone | 收款用户的手机号 | string | required |
基于商户订单号获取代付订单
- 注意: 查询订单,须使用 [查询TOKEN]
GET /api/v2/disbursement/ref_trade_id/{merchant_order_id}
请求示例
curl "https://{API_BASE_HOST}/api/v2/disbursement/ref_trade_id/{merchant_order_id}" \
-H "Authorization: bearer YOUR_ACCESS_KEY"
查询代付订单列表
- 注意: 查询订单,须使用 [查询TOKEN]
GET /api/v2/disbursement
Parameter
| 字段名 | 说明 | 类型 | 默认值 | 取值范围 |
|---|---|---|---|---|
| start | 交易时间范围的起始时间,取值为时间戳 | int | 可选 | |
| end | 交易时间范围的结束时间,取值为时间戳 | int | 可选 | |
| status | 按订单状态值查询订单 | string | 可选 | |
| sort_type | 排序类型:desc/asc,表示按交易时间倒序还是正序排序 | string | desc | 可选(默认desc) |
| page_size | 每页的记录数 | int | 10 | 1-30 |
| start_after | 查询某条记录之后的一页 | string | 可选 | |
| end_before | 查询某条记录之前的一页 | string | 可选 |
请求示例
curl -G "https://{API_BASE_HOST}/api/v2/disbursement" \
-H "Authorization: bearer YOUR_ACCESS_KEY" \ // Query TOKEN must be used here
--data-urlencode "start=1609459200" \
--data-urlencode "end=1612137600" \
--data-urlencode "status=completed" \
--data-urlencode "sort_type=desc" \
--data-urlencode "page_size=2" \
--data-urlencode "start_after=some_record_id"
响应示例
{
"has_more": true,
"sort_type": "desc",
"page_size": 2,
"start_after":
"eyJzdGFydF9hZnRlciI6ImRpYl8yV3F4Rk5DQ2tWcTRQZmhpWGxwV1NTbmJRZFYiLCJlbmRfYmVmb3JlIjoiIiwic
GFnZV9zaXplIjoyLCJwYWdpbmdfdGltZSI6MTY5NzYwMTM5OTIxOH0=",
"data": [
{
"id": "dib_xxxxxxxxx",
"ref_trade_id": "30007",
"amount": "5.00",
"currency": "php",
"status": "succeeded",
"bank_account_name": "Fly Pig",
"bank_account_no": "09123456789",
"account_id": "acct_123456",
"trans_at": "1697503493000",
"object": "disburse_order"
},
{
"id": "dib_yyyyyyyy",
"ref_trade_id": "10030",
"amount": "5.00",
"currency": "php",
"status": "succeeded",
"bank_account_name": "Fly Pig",
"bank_account_no": "09123456789",
"account_id": "acct_123456",
"trans_at": "1697473745000",
"object": "disburse_order"
}
]
}
余额
查询余额
- 注意: 查询余额,须使用 [查询TOKEN]
GET /api/v1/balance/{accountId}
请求示例
curl "https://{API_BASE_HOST}/api/v1/balance/{account_id}" \
-H "Authorization: bearer YOUR_ACCESS_KEY" // Query TOKEN must be used here
响应示例
{
"cash_balance": "53.38",
"in_transit_balance": "30.00",
"receivable_balance": "120.38",
"channel_payable_balance": "10000.00",
"channel_settled_balance": "8000.38",
}
Request Parameters
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| accountId | path | Yes | string |
- account_id 为商户的 账户编号
Responses
| HTTP Code | Description |
|---|---|
| 200 | OK |
| 字段名 | 说明 | 类型 |
|---|---|---|
| receivable_balance | 商户应收款余额,单位:比索 | string |
| cash_balance | 商户可提现或可代付资金总额,单位:比索 | string |
| In_transit_balance | 商户在途资金总额,单位:比索 | string |
| channel_payable_balance | 渠道当时(0:00-23:59:59)累计应付款额度,即商家当时累计收款金额,单位:比索 | string |
| channel_settled_balance | 渠道当日(0:00-23:59:59)累计已结算额度,即商家当时累计代付出去的金额,单位:比索 | string |
回调通知(webhook)
不同的交易,在交易完成后,会回调通知商户。消息体为相应交易涉及的业务对象,⽐如代收的回调 通知为代收业务对象 ,代付的回调通知为代付业务对象。如果是交易失败 了,可以在fail_reason得到失败原因。可以通过返回数据中的object字段区分对象类型进⾏不同的 解析处理。 商户可以统⼀设置回调地址,或者在发送⽀付或代付请求时传callback_url。
代收的回调示例
{
"id": "py_xxxxxxxx",
"ref_trade_id": "5000",
"account_id": "acct_xxxxxxxxx",
"amount": "10.00",
"currency": "php",
"payment_method": {
"type": "qrph"
},
"fee_amount": "0.38",
"exchange_rate": "0",
"status": "succeeded", // succeeded: payment collection succeeded; failed: payment collection failed
"description": "AbC",
"trans_at": 1697608780000,
"object": "payment_order"
}
代付的回调示例
# Successful callback notification
{
"id": "dib_xxxx",
"account_id": "acct_xxxx",
"ref_trade_id": "xxxxxxxxxx",
"channel_code": "",
"institution": "gcash",
"amount": "100.00",
"currency": "php",
"fee_amount": "6.00",
"status": "succeeded", // succeeded: disbursement succeeded; failed: disbursement failed
"bank_account_no": "09123456789",
"bank_account_name": "bank_account_name",
"description": "payout",
"callback_url": "https://merchant_callback_url",
"trans_at": 1745853458000,
"object": "disburse_order",
"voucher_no": ""
}
# Failed callback notification
{
"id": "dib_xxxx",
"account_id": "acct_xxxx",
"ref_trade_id": "xxxxxxxxxx",
"channel_code": "",
"institution": "gcash",
"amount": "100.00",
"currency": "php",
"fee_amount": "6.00",
"status": "failed", // succeeded: disbursement succeeded; failed: disbursement failed
"bank_account_no": "09123456789",
"bank_account_name": "bank_account_name",
"fail_reason": "fail_reason", // Failure reason
"callback_url": "https://merchant_callback_url",
"trans_at": 1745853458000,
"object": "disburse_order",
"voucher_no": ""
}
⽤于签名的payload为:
timestamp=1697609372293&body={"id":"py_xxxxxxxx","ref_trade_id":"5000","account_id":"acct_xxxxxxxxx","amount":"10.00","currenc
y":"php","payment_method":{"type":"qrph"},"fee_amount":"0.38","exchange_rate":"0","status"
:"succeeded","description":"AbC","trans_at":1697608780000,"object":"payment_order"}
密钥为:
1KkHJGVPTuvWQYMXN2eLsw1gXGq6xfwbov3JzSZ7VtSGrCR9fgVy9BiARR45efpz772YdDpdbaPmwMtA8QspRC7PFG54CH
⽣成的签名为:
2b736e1900a2a89db5dd55b09a5177a627cfb0d7bdddd634d4afff3f0fffdc6b
您可以基于以上示例先验证⾃⼰的签名部分的代码。
错误码定义
API 采⽤RESTful⻛格,应答消息中,⽤http status code表示请求的处理情况,如果是成功,则为200,消息体为具体业务对象: 代付业务对象,代收业务对象;
如果是失败,不同的status code表达不同的失败原因分类.
在消息体中,⽤code表达具体错误码,message表达详细错误原因.
错误消息示例
{
"code": " balance_insufficient " //Insufficient account balance, in string form, a human-readable error code
"message": "No enough balance for disbursement" //More specific error information, which may include a URL linking to detailed instructions on the merchant dashboard
}
HTTP状态码汇总
- 4XX类的错误码时,表示⽀付或代付订单创建失败,可以重新发起。
| HTTP Code | 含义 |
|---|---|
| 200 | 请求处理成功 |
| 201 | 创建成功 |
| 400 | 无效请求,缺少关键的参数 |
| 401 | 鉴权校验失败 |
| 403 | 权限不足,可能因为业务未开通 |
| 404 | 请求的资源不存在,例如发起退款时对应的支付记录不存在 |
| 409 | 用户尝试创建的资源已存在(例如幂等的接口被重复调用) |
| 429 | 重复的请求过于频繁 |
| 500 | 服务器未知错误,代付请求收到 500 类错误时,需要查单后确认代付状态 |
消息体的错误码
| Code | 含义 |
|---|---|
| authorization_failed | 鉴权失败 |
| sign_validate_failed | 验签失败 |
| no_privilege | 对访问的资源没有权限 |
| unsupported_payment_method | 支付方式类型未开通或者不支持的支付方式 |
| balance_insufficient | 代付时余额不足 |
| transaction_expired | 交易超时 |
| invalid_bank_account_no | 无效的银行账户号 |
| payment_intent_invalid_parameter | 针对特定支付订单操作(查询或更新)时,参数无效 |
| disburse_invalid_parameter | 针对特定代付订单操作(查询或更新)时,参数无效 |
附录-代付银行
菲律宾-代付银行
| 银行代号 (bank_code) | 银行名称 |
|---|---|
| allbank | AllBank (A Thrift Bank), Inc. |
| anz | ANZ Banking Group Ltd |
| guinobatan | Asenso |
| bananapay | BananaPay |
| bangkomabuhay | Bangko Mabuhay |
| bankofchina | Bank of China |
| bankofcommerce | Bank of Commerce |
| bdouni | BDO Bank |
| binangonan | Binangonan Rural Bank (BRBDigital) |
| bdo | BDO Network Bank |
| bpi | Bank of the Philippine Islands (BPI) |
| bpibanko | BPI Direct BanKo, Inc., A Savings Bank |
| camalig | Camalig Bank |
| cantilan | Cantilan Bank |
| cardbank | CARD Bank |
| sme | CARD SME Bank |
| cebuanal | Cebuana Lhuillier Bank/ Cebuana Xpress |
| chinabank | China Bank |
| chinabanksavings | China Bank Savings |
| cisbayad | CIS Bayad Center/ Bayad |
| ctbc | CTBC Bank (Philippines) Corp. |
| dbp | Development Bank of the Philippines |
| dumaguetebankx | Dumaguete Bank |
| dungganon | Dungganon Bank |
| eastwest | EastWest Bank |
| equicom | Equicom Savings Bank |
| gotyme | GoTyme Bank |
| iremit | I-Remit/iCASH |
| isla | ISLABANK |
| zybi | JuanCash |
| eastwest_rural | Komo/ EastWest Rural Bank |
| landbank | LANDBANK / OFBank |
| lazada | Lazada Wallet (Alipay Ph.) |
| legazpi | Legazpi Savings Bank |
| malayan | Malayan Bank Savings |
| mayabank | Maya Bank |
| maybank | Maybank |
| metrobank | Metrobank |
| mcb | Mindanao Consolidated CoopBank |
| moneymall | Money Mall Rural Bank, Inc. |
| netbank | NetBank |
| omnipay | Omnipay, Inc. |
| ownb | Own Bank |
| palawanpay | PalawanPay |
| partnerrb | Partner Rural Bank (Cotabato), Inc. |
| paymongo | PayMongo |
| pbcom | PBCOM |
| pdax | PDAX |
| pbb | Philippine Business Bank, Inc., A Savings Bank |
| veterans | Philippine Veterans Bank |
| philtrust | PhilTrust Bank |
| producers | Producers Savings Bank Corporation |
| psbank | PSBank |
| queenbank | Queenbank |
| quezonbank | Quezon Capital Rural Bank |
| seabank | Seabank |
| security | Security Bank |
| shopeepay | ShopeePay |
| speedypay | SpeedyPay |
| standard_chartered | Standard Chartered Bank |
| starpay | Starpay |
| sterling | Sterling Bank of Asia |
| sunsavings | Sun Savings Bank |
| tayocash | TayoCash |
| tonik | Tonik Bank |
| traxionpay | TraxionPay/ DigiCOOP/ COOPNET |
| ucpb | UCPB Savings Bank |
| union_bank | Union Bank of the Philippines |
| uniondigital | UnionDigital Bank |
| uno | UNOBank |
| ussc | USSC |
| wealth | Wealth Bank |
| yuanta | Yuanta Bank |
| gcash | Globe Gcash |
| paymaya | Paymaya Philippines, Inc. |
| maya | Paymaya Philippines, Inc. |
| cimb | CIMB Bank Philippines |
| rcbc | RCBC / Diskartech |
| grab_pay | GrabPay |
| pnb | PNB |
| aub | Asia United Bank |
| robinsons | Robinsons Bank |
| union_bank_ba | UnionBank BA |
泰国-代付银行
| 银行代号 (bank_code) | 银行名称 |
|---|---|
| bangkok | BANGKOK BANK PUBLIC COMPANY LTD. |
| kasikornbank | KASIKORNBANK PUBLIC COMPANY LIMITED |
| krung_thai | KRUNG THAI BANK PUBLIC COMPANY LTD. |
| tmbthanachart | TMBTHANACHART BANK PUBLIC COMPANY LIMITED |
| siam | SIAM COMMERCIAL BANK PUBLIC COMPANY LTD. |
| citibank | CITIBANK, N.A. |
| sumitomo_mitsui | SUMITOMO MITSUI BANKING CORPORATION |
| standard_chartered | STANDARD CHARTERED BANK (THAI) PUBLIC COMPANY LIMITED |
| cimb_thai | CIMB THAI BANK Public Company Limited |
| united_overseas | UNITED OVERSEAS BANK (THAI) PUBLIC COMPANY LIMITED |
| bank_of_ayudhya | BANK OF AYUDHYA PUBLIC COMPANY LTD. |
| indian_oversea | INDIAN OVERSEA BANK |
| government_savings | GOVERNMENT SAVINGS BANK |
| bangkok_hongkong_shanghai | The Hongkong and Shanghai Banking Corporation Limited, Bangkok Branch |
| deutsche | DEUTSCHE BANK AG. |
| government_housing | THE GOVERNMENT HOUSING BANK |
| agriculture_and_agricultural_cooperatives | BANK FOR AGRICULTURE AND AGRICULTURAL COOPERATIVES |
| bangkok_mizuho | Mizuho Bank, Ltd. Bangkok Branch |
| bank_of_china | BANK OF CHINA (THAI) PUBLIC COMPANY LIMITED |
| bnp_paribas | BNP PARIBAS |
| islamic | ISLAMIC BANK OF THAILAND |
| tisco | TISCO BANK PUBLIC COMPANY LIMITED |
| kiatnakin_phatra | KIATNAKIN PHATRA BANK PUBLIC COMPANY LIMITED |
| industrial_and_commercial_bank_of_china | INDUSTRIAL AND COMMERCIAL BANK OF CHINA (THAI) PUBLIC COMPANY LIMITED |
| thai_credit | THE THAI CREDIT BANK PUBLIC COMPANY LIMITED |
| land_and_houses | LAND AND HOUSES BANK PUBLIC COMPANY LIMITED |
| small_and_medium_enterprise_development | SMALL AND MEDIUM ENTERPRISE DEVELOPMENT BANK OF THAILAND |
| australia_and_new_zealand | AUSTRALIA AND NEW ZEALAND BANKING GROUP LIMITED |
印尼-代付银行
| 银行代号 (bank_code) | 银行名称 |
|---|---|
| bri | Bank Rakyat Indonesia |
| mandiri | Bank Mandiri (Persero) Tbk |
| bni | Bank Negara Indonesia |
| danamon | Bank Danamon Indonesia Tbk |
| permata | PT Bank Permata Tbk |
| permata_syariah | PT Bank Permata Tbk Syariah |
| bca | Bank Central Asia Tbk |
| bii_maybank | PT Bank Internasional Indonesia Tbk |
| panin | PT Bank Panin Tbk |
| cimb_niaga | PT Bank CIMB Niaga Tbk |
| uob_indonesia | PT Bank UOB Buana Tbk |
| ocbc_nisp | PT Bank OCBC NISP Tbk |
| citibank | Citibank N.A. |
| america_na | Bank of America NA |
| windu_kentjana_international | PT Bank Windu Kentjana International Tbk |
| artha_graha | PT Bank Artha Graha Internasional Tbk |
| tokyo_mitsubishi_ufj | Bank of Tokyo-Mitsubishi UFJ, Ltd. |
| dbs | DBS Bank Ltd. |
| resona_perdania | Bank Resona Perdania |
| mizuho_indonesia | Bank Mizuho Indonesia |
| standard_chartered | Standard Chartered Bank |
| capital | PT Bank Capital Indonesia Tbk |
| bnp_paribas | Bank BNP Paribas Indonesia |
| anz_indonesia | PT ANZ Panin Bank |
| china | Bank of China Limited |
| bumi_arta | PT Bank Bumi Arta Tbk |
| hsbc | HSBC Bank (Indonesia) |
| antardaerah | Bank ANTAR DAERAH |
| rabobank | PT Bank Rabobank International Indonesia |
| jtrust_indonesia | PT Bank JTrust Indonesia |
| mayapada | PT Bank Mayapada Internasional Tbk |
| jawa_barat | Bank Jawa Barat dan Banten Tbk |
| dki | Bank DKI |
| bpd_diy | Bank Pembangunan Daerah Istimewa Yogyakarta |
| jateng | Bank Jateng |
| jatim | Bank Jatim |
| jambi | Bank Jambi |
| jambi_syariah | Bank Jambi Syariah |
| aceh | Bank Aceh |
| aceh_syariah | Bank Aceh Syariah |
| sumut | Bank Sumut |
| nagari | Bank Nagari |
| riau | Bank Riau |
| riau_syariah | Bank Riau Syariah |
| sumsel_babel | Bank Sumsel Babel |
| sumsel_babel_syariah | Bank Sumsel Babel Syariah |
| lampung | Bank Lampung |
| kalsel | Bank Kalsel |
| kalbar | Bank Kalbar |
| bpd_kaltim | Bank Pembangunan Daerah Kalimantan Timur |
| bpd_kalteng | Bank Pembangunan Daerah Kalimantan Tengah |
| sulsebar | Bank Sulawesi Selatan dan Sulawesi Barat |
| sulut | Bank Sulut |
| ntb | Bank Nusa Tenggara Barat |
| ntb_syariah | Bank Nusa Tenggara Barat Syariah |
| bpd_bali | Bank Pembangunan Daerah Bali |
| ntt | Bank Nusa Tenggara Timur |
| maluku | Bank Maluku |
| bpd_papua | Bank Pembangunan Daerah Papua |
| bengkulu | Bank Bengkulu |
| sulteng | Bank Sulawesi Tengah |
| sultra | Bank Sultra |
| banten | Bank Banten |
| nusantara_parahyangan | Bank Nusantara Parahyangan |
| india_indonesia | Bank of India Indonesia |
| muamalat | Bank Muamalat Indonesia |
| mestika | Bank Mestika |
| shinhan | Shinhan Bank |
| sinarmas | PT Bank Sinarmas Tbk |
| maspion | PT Bank Maspion Indonesia Tbk |
| ganesha | Bank Ganesha |
| icbc | Industrial and Commercial Bank of China (ICBC) |
| qnb_indonesia | PT Bank QNB Kesawan Tbk |
| btn | Bank Tabungan Negara |
| woori_saudara | Bank Woori Saudara 1906 Tbk |
| btpn | PT Bank Tabungan Pensiunan Nasional Tbk |
| victoria_syariah | PT Bank Victoria Syariah |
| jabar_banten_syariah | Bank Jabar Banten Syariah |
| mega | Bank Mega Tbk |
| bukopin | Bank Bukopin |
| syariah_indonesia | Bank Syariah Indonesia |
| jasa_jakarta | Bank Jasa Jakarta |
| keb_hana | KEB Hana Bank |
| mnc_international | PT Bank MNC Internasional Tbk |
| yudha_bhakti | Bank Yudha Bhakti |
| rakyat_indonesia_agroniaga | Bank Rakyat Indonesia (Agroniaga) |
| sbi_indonesia | Bank SBI Indonesia (Indomonex) |
| royal | Bank Royal |
| national_nobu | Bank Nationalnobu |
| mega_syariah | Bank Mega Syariah |
| ina | Bank Ina Perdana |
| panin_syariah | Bank Panin Syariah |
| prima_master_bank | Bank Prima Master |
| syariah_bukopin | Bank Syariah Bukopin |
| sampoerna | Bank Sahabat Sampoerna |
| dinar | Bank Dinar Indonesia |
| amar | Bank Amar Indonesia |
| seabank | Bank Seabank Indonesia |
| bca_syariah | Bank Central Asia Syariah |
| artos_jago | PT Bank Artos Indonesia |
| btpn_syariah | Bank Tabungan Pensiunan Nasional Syariah |
| multiarta_sentosa | Bank Multiarta Sentosa |
| mayora | PT Bank Mayora Indah Tbk |
| index | PT Bank Index Selindo |
| cnb | Central Nasional Bank |
| mantap | PT Bank Mantap Sejahtera |
| victoria_international | PT Bank Victoria International |
| harda | PT Bank Harda Internasional Tbk |
| bpr_ks | Bank Pembangunan Daerah Kepulauan Selayar |
| ibk | PT Bank IFI |
| aladin_syariah | Bank Aladin Syariah |
| ctbc_indonesia | China Trust Commercial Bank, Indonesia Branch |
| commonwealth | Commonwealth Bank of Australia |
| dana | Dana |
| gopay | Gopay |
| linkaja | linkaja |
| ovo | ovo |
| shopeepay | shopeepay |
巴西-代付银行
巴西的代付(银行) 仅支持以下四种: cpf,cnpj,email,phone
巴基斯坦-代付银行
代付银行类型(destination.type),目前有三种: jazzcash,easypaisa,pak_bank
| 银行代号 (bank_code) | 银行名称 |
|---|---|
| alfh | BANK ALFALAH LTD. |
| habb | HABIB BANK LTD. |
| aiin | ALBARAKA BANK (PAKISTAN) LTD. |
| abpa | ALLIED BANK LTD. |
| ascm | ASKARI BANK LTD. |
| bahl | BANK AL-HABIB LTD. |
| bkip | BANK ISLAMI PAKISTAN LTD. |
| khyb | BANK OF KHYBER |
| bpun | BANK OF PUNJAB |
| duib | DUBAI ISLAMIC BANK PAKISTAN LTD. |
| fays | FAYSAL BANK LTD. |
| fwom | FIRST WOMEN BANK LTD. |
| mpbl | HABIB METROPOLITAN BANK LTD. |
| jsbl | JS BANK LTD. |
| plco | KASB BANK LTD. |
| mucb | MCB BANK LTD. |
| mcib | MCB Islamic Bank Limited |
| mezn | MEEZAN BANK LTD. |
| nbpa | NATIONAL BANK OF PAKISTAN |
| nibp | NIB BANK LTD. |
| nrsp | NRSP MICROFINANCE BANK LTD. |
| samb | SAMBA BANK LTD. |
| silk | SILK BANK LTD. |
| sind | SINDH BANK LTD. |
| sone | SONERI BANK LTD. |
| scbl | STANDARD CHARTERED BANK (PAKISTAN) LTD. |
| sumb | SUMMIT BANK LTD. |
| tmbl | TAMEER MICROFINANCE BANK LTD. |
| unil | UNITED BANK LTD. |
| tmfb | Telenor Micro Finance Bank |
| jcma | Mobilink Micro Finance Bank |
| finc0 | FINCA Micro Finance Bank |
| umbl | U-Micro Finance Bank |
| sdp | SADAPAY |
| kbl | Khushhali Microfinance Bank Ltd. |
| ztb | ZARAI TARAQIATI BANK |