印尼支付接口
1775字约6分钟
注意
阅读该接口文档前,务必先查看 接口说明
限额
交易类型 | 限额(单位:IDR) |
---|---|
代收 | QR: 1w-500w VA: 1w-2000w EWALLET:1w-2000w |
代付 | 银行(BANK_ACCOUNT): 1w-4000w 钱包(EWALLET): 1w-2000w |
代付API
代付申请
简要描述:
- 创建代付订单
URL:/idr/pay/apply
参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
appId | 是 | Long | 业务ID(后台获取) |
orderId | 是 | String | 商户订单号(必须保证唯一性) |
amount | 是 | String | 交易金额(单位:印尼盾) |
accountType | 是 | String | 账户类型: BANK_ACCOUNT,EWALLET |
bankCode | 是 | String | 银行代码 |
accountNo | 是 | String | 用户银行账号 |
name | 是 | String | 收款人姓名(收款人姓名 格式:英文或印尼语大小写且允许有空格,1-30位,"firstName middleName lastName" (middleName 非必填, 特殊字符支持 '.-)) |
phone | 是 | String | 手机号(格式参考 电话号码格式 ) |
是 | String | 电子邮件 | |
subject | 否 | String | 支付备注(交易标题,商品名称,支付原因) |
body | 否 | String | 备注详情 |
sign | 是 | String | 签名 |
request(accountType为BANK_CARD类型时)
{
"appId": 1054,
"orderId": "M100000450012",
"amount": "500",
"accountType": "BANK_ACCOUNT",
"bankCode": "014",
"accountNo": "09876543210",
"name": "john doe",
"phone": "08276543210",
"email": "johndoe@cashfree.com",
"subject": "iphone13",
"body": "ProMotion technology with adaptive refresh rates up to 120Hz",
"sign": "I1PeK3eJOVsFFNowxVRqMXpeWm1lr/BcRpBi8WsW4wVo1+5CC3JsrFq/m/L2O69NzKHvtDWi4zia3DL3dPut0yMyUyqL91LNCSaeISbGsQPlhEsQpyTOryS/RKOfsrn2Xo37SCF/phAvndOk2jwwGwqM5xLz1ms9Ukl85wv27QFNrXIMxK2p18oe7MpMYrgf+xvEBE/VqCtKMtN9pO449wWwXzHWNPbZ76s4pAvKwRE9yXQDr7Iw14Dktcnl1FoLM4gWM/obkO+mz6SyAGDuXhVh/+OD/IGNiCyTCNq6ciQY28UnCFV6ZIP40gxsFhfBJKbK+Raw7y1Bh912ifYfug=="
}
response
{
"status": "1",
"error": "00000000",
"msg": "",
"data": {
"orderId": "M100000450013",
"orderNo": "3023062014149637",
"sign": "LmhUnkw5j0pMiimsG8rKwdNNZGvXH5MpSmD6mdHZwq1SQwuK5BohmdEoqKB/jkMk28o3da4Cxh6Q+tW97+yTCemRrF+dMaHA73rpOeUuujKQl/UcFvJuMhfLBa2tp09L71NzoBqpPD6aXf37mYAz8E1HmERwFPpac5FVxIYanHG8cqmMLJYsVmHTSxWavgWU03ys9UczBePkBiR8sl2FSOhFABB0wAP28lswrV/ABS68IsLKtyd1fyI3GBfSbIK5nDEEnlE+EdElFdLs9taAxJImeVF1x4eT47+bkPJ2qS8z3K8QGzKLF3W+8SiRZGfSwDTsLKH+2Vycvy5auRl+ag=="
}
}
返回data参数说明
参数名 | 必选 | 类型 |
---|---|---|
orderId | String | 商户订单号(必须保证唯一性) |
orderNo | String | 平台订单号 |
sign | String | 签名 |
代付查询
简要描述:
- 创建代付订单
URL:/idr/pay/query
参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
appId | 是 | Long | 业务ID(后台获取) |
orderId | 是 | String | 商户订单号 |
orderNo | 否 | String | 平台订单号(响应快) |
sign | 是 | String | 签名 |
request
{
"appId": 1000,
"orderId": "M1234567111",
"orderNo": "3022111516571436",
"sign": "ZxkVZL+GAyv0VhvWn4IvuYahTzxgQuthkuV2ONWiqIfIDb2avvHlFOUJVzqZi1q8CPHXZm1ltanRTRVTxfsuftLvGeDioUHglWt46/RU6c1OPznpLGsZ35Q3n5tW2y1EnOsxPynXBFLuDQy+aZ3l9u6AQ30T0zQexMGT+IxuFkmUp02g/6juaHa5ZgNMv7lN67ixIp162wrM7OJuaOif872QijSceRdZhzaMGImAwB0D4MosRV4WMBOKkwgPdmS7GuZN66YUidXk3wTGqX3MYRw6M0kj4eNegSUwPXvp4q4p0KO8Y3xUMld54GY2ApX3WN3CBtC/vpJqEszjGBbbGg=="
}
response — 订单失败
{
"status": "1",
"error": "00000000",
"msg": "",
"data": {
"orderId": "M1234567111",
"orderNo": "3022111516571436",
"amount": "100000.00",
"fee": "0.00",
"status": 3,
"errorMsg": "Đơn hàng không tồn tại",
"sign": "KKuvCl0SuNANJs+l2ogDaJm8pmV+Hi+Xa7q27vJ6D1Ehs4aOp13kRbITfJAhczh3T81BE9qwHeJaYwf+r0EypKM9TL6pMwfG8Az4gRy1D57wiUaVjl2PWcvbEqrn1hL0b+btkjvAM9I+CcSv+wuOW3/uku17Ws3FhgJLj9sFsQUBAPjDO+758VnwBytCOLBmljLBXyKgNgpmFQ1/DNkqWl0UNzyLK45Zw3yf5NiwhEFbvW0jlOWlfu/ql4hluISUQG573jEoFCBEnQLb2tQoRZj1QYNRCXPf5lbej0vzqbEwvR9h+ZOf255t1MocJkdIe463DTV5U3KZdVT87HMagw=="
}
}
response — 订单成功
{
"status": "1",
"error": "00000000",
"msg": "",
"data": {
"orderId": "M1234567112",
"orderNo": "3022111517401574",
"amount": "100000.00",
"fee": "1003.00",
"status": 2,
"payTime": "2024-03-01 23:59:59",
"sign": "khPtOmGq+cpKX0HFAI/lbP0dx4oVyNAnL5oLsdmhDJdASlQm0yg5I3o+MhImYggEsL6c2bo5fP29t54OZFqSdQDfIuNDvGbAMAr4mRBxc0hoHLkBLyyagfVPBLyQA1JY8XV3ZL4ySzQ3ZQnMCfrh2K39ueUuz6HpZ03Hj0KYijVRCXAZaio/L5jfLBT12QXmvIfAHa8s/k9flhK05ENHPep3zjj/MZGOEaX7jkEJLfjK0duypDCa61BRQjM+oePOdVsgleIl1Yf98UAxMDZ/A3912KFHEb+/jvmdnulNbiJFyuT1fEe+j2teUgw3vFsZAtwNWAgxhC7UO+N0Q5z4EA=="
}
}
返回data参数说明
参数名 | 类型 | 说明 |
---|---|---|
orderId | String | 商户订单号(必须保证唯一性) |
orderNo | String | 平台订单号 |
amount | String | 交易金额 |
fee | String | 手续费 |
status | Integer | 订单状态(0未开始, 1放款中 2放款成功(终态) 3放款失败(终态) -1异常待确认) |
payTime | String | 支付成功时间(当status=2时有值)(印尼时间), 格式: yyyy-MM-dd HH:mm:ss |
errorMsg | String | 支付失败原因(当status=3时有值) |
sign | String | 签名 |
银行代码
银行代码BANK_ACCOUNT(银行卡)
bankCode | bankName |
---|---|
567 | ALLO BANK INDONESIA |
116 | BANK ACEH SYARIAH |
947 | BANK ALADIN SYARIAH |
037 | BANK ARTHA GRAHA INTERNASIONAL |
213 | BANK BTPN |
547 | BANK BTPN SYARIAH |
076 | BANK BUMI ARTA |
054 | BANK CAPITAL INDONESIA |
036 | BANK CHINA CONSTRUCTION |
949 | BANK CTBC |
011 | BANK DANAMON |
722 | BANK DANAMON SYARIAH |
111 | BANK DKI |
724 | BANK DKI SYARIAH |
945 | BANK IBK INDONESIA |
164 | BANK ICBC INDONESIA |
513 | BANK INA PERDANA |
555 | BANK INDEX SELINDO |
542 | BANK JAGO/SYARIAH |
472 | BANK JASA JAKARTA |
097 | BANK MAYAPADA |
553 | BANK MAYORA |
506 | BANK MEGA SYARIAH |
147 | BANK MUAMALAT |
548 | BANK MULTI ARTA SENTOSA |
033 | BANK OF AMERICA NA |
069 | BANK OF CHINA |
019 | BANK PAN INDONESIA |
110 | BANK PEMBANGUNAN DAERAH JAWA BARAT DAN BANTEN |
425 | BANK PEMBANGUNAN DAERAH JAWA BARAT DAN BANTEN SYARIAH |
167 | BANK QNB INDONESIA |
494 | BANK RAYA INDONESIA |
047 | BANK RESONA PERDANIA |
451 | BANK SYARIAH INDONESIA |
566 | BANK VICTORIA INTERNASIONAL |
014 | BCA |
501 | BCA Digital |
536 | BCA SYARIAH |
009 | BNI |
129 | BPD BALI |
137 | BPD BANTEN |
133 | BPD BENGKULU |
112 | BPD DIY |
736 | BPD DIY SYARIAH |
115 | BPD JAMBI/SYARIAH |
113 | BPD JAWA TENGAH |
725 | BPD JAWA TENGAH SYARIAH |
114 | BPD JAWA TIMUR/SYARIAH |
123 | BPD KALIMANTAN BARAT |
727 | BPD KALIMANTAN BARAT SYARIAH |
122 | BPD KALIMANTAN SELATAN |
728 | BPD KALIMANTAN SELATAN SYARIAH |
125 | BPD KALIMANTAN TENGAH |
124 | BPD KALIMANTAN TIMUR DAN KALIMANTAN UTARA |
729 | BPD KALIMANTAN TIMUR DAN KALIMANTAN UTARA SYARIAH |
131 | BPD MALUKU DAN MALUKU UTARA |
130 | BPD NTT |
128 | BPD NUSA TENGGARA BARAT SYARIAH |
119 | BPD RIAU KEPRI |
126 | BPD SULAWESI SELATAN DAN SULAWESI BARAT |
735 | BPD SULAWESI SELATAN DAN SULAWESI BARAT SYARIAH |
135 | BPD SULAWESI TENGGARA |
127 | BPD SULAWESI UTARA DAN GORONTALO |
118 | BPD SUMATERA BARAT/NAGARI SYARIAH |
120 | BPD SUMATERA SELATAN BANGKA BELITUNG/SYARIAH |
117 | BPD SUMATERA UTARA |
733 | BPD SUMATERA UTARA SYARIAH |
002 | BRI |
200 | BTN/SYARIAH |
022 | CIMB NIAGA/SYARIAH |
031 | CITIBANK NA |
046 | DBS |
161 | GANESHA |
008 | MANDIRI |
157 | MASPION |
016 | MAYBANK INDONESIA/SYARIAH |
426 | MEGA |
151 | MESTIKA DHARMA |
485 | MNC BANK |
042 | MUFG BANK |
490 | NEO COMMERCE |
503 | NATIONALNOBU |
028 | OCBC NISP/SYARIAH |
013 | PERMATA/SYARIAH |
484 | PT BANK KEB HANA INDONESIA |
564 | PT BANK MANDIRI TASPEN POS |
523 | PT BANK SAHABAT SAMPOERNA |
068 | PT BANK WOORI SAUDARA INDONESIA 1906 |
041 | PT. BANK HSBC INDONESIA |
132 | PT.BANK PEMBANGUNAN DAERAH PAPUA |
535 | SEABANK |
153 | SINARMAS |
734 | SINARMAS SYARIAH |
050 | STANDARD CHARTERED BANK |
023 | UOB INDONESIA |
钱包代码EWALLET(电子钱包)
bankCode | bankName |
---|---|
DANA | dana ewallet |
OVO | ovo ewallet |
GOPAY | gopay ewallet |
LINKAJA | linkaja ewallet |
SHOPEEPAY | shopeepay ewallet |
代收API
代收申请
简要描述:
- 创建代收订单
URL:/idr/collect/apply
参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
appId | 是 | Long | 业务ID(后台获取) |
orderId | 是 | String | 商户订单号(必须保证唯一性) |
name | 是 | String | 付款人姓名(付款人姓名格式:英文或印尼语大小写且允许有空格,1-30位,"firstName middleName lastName" (middleName非必填,特殊字符支持!-) |
phone | 是 | String | 手机号(08xxxxxxxxxx),(格式参考 电话号码格式 ) |
是 | String | 电子邮件 | |
amount | 是 | String | 交易金额(单位:印尼盾) |
payType | 是 | String | 用户支付方式:QR,VA,EWALLET |
inBankCode | 是 | String | 收款编码Code |
callBackUrl | 是 | String | 支付重定向地址 |
currency | 否 | String | 币种(默认IDR) |
subject | 否 | String | 支付备注 |
body | 否 | String | 备注详情 |
sign | 是 | String | 签名 |
request
{
"appId": 1054,
"orderId": "M233323000059",
"amount": "300",
"phone": "08230219312",
"email": "23423@qq.com",
"name": "test",
"inBankCode": "014",
"payType": "QR",
"sign": "af0gAHkUOyYHu9owQp8NJ4mPEeUW4vuJcjdxqLIzrVw8AvpLSjD1DXupReSG/CyuSkFRyiIvCp5u703AuGGmfgD2gKDH3Ywau41bAbG2jnHJ8mtjiSJ5iWUzanyd4Kr7d1+rETbzUl7/BkW3t0X8UUFdqpxwG8DPUjAwUKfplWDHV7koG51Ozexd80DCsmW6eWdouAZ1uNXGLYmV3ftE3BmfNRtuv1C5bfTJWrTEIOxbF6g2uYOFZTlIgrQgd7/2PsAYwQQXNz8Q8CYl4OxqCv4pXJxaLWPbR5tqZu9og5kn32C9aHW/NlU1y39vzz+4ef81yPAqUV9oHlSMSPrMmw=="
}
response
{
"status": "1",
"error": "00000000",
"msg": "",
"data": {
"orderId": "M233323000059",
"orderNo": "6023071013539074",
"payUrl": "https://a.api-uat.idr.com/1L9zQS2",
"bankCode": "014",
"qrCode": "00020101021228760011ph.ppmi.p2m0111OPDVPHM1XXX0315777148000000017041652948137245442930503001520460165303608540810000.vnd Of Mandalu62310010ph.allbank05062110000803***88310012ph.ppmi.qrph0111OPDVPHM1XXX63042763",
"sign": "YEoA8Y2JzQFGVzwJSqmemm1Kfv/bfyIfCqv2dp7RNzT5B72AQvdD+nt2nR4sL1HWscvmNHyVt5ovAi7MMhy3ziih/sMph+wPx4YjH3W1h5DyBvSlWvaKfKrK5ViomZ0pPYWydwRHnnRnicxToHK9S6qtSy7Q73O0hdz4hJ9p41Th3ycBl2Q9SeqSZYSY1ohcPDhdyRf2y0prb8rHgpBKzxZ5BKX/1bsE9OmsSEHAEYT8OGgko6aNe8XPAhr4G48cpWTftvnGQuzh0O65nuZRI/PF+Axt2zJCVbFHDDSREI9NlAT82ebDqhlVdxQzKE67D1nxgjb3dPmDUYHOBpmwxQ=="
}
}
返回data参数说明
参数名 | 类型 | 说明 |
---|---|---|
orderId | String | 商户订单号(必须保证唯一性) |
orderNo | String | 平台订单号 |
payUrl | String | 返回的是收款地址 其他时候返回的是指引或者详情 |
bankNo | String | 收款卡号(VA) |
bankCode | String | 收款银行 |
qrCode | String | 二维码内容-可自行生成二维码(QR) |
sign | String | 签名 |
代收查询
简要描述:
- 创建代付订单
- 当“payType=PAYMENT_GATEWAY” 时同步返回orderNo可以直接查询
- 其他支付方式异步通知后,通过orderNo查询二次确认状态
URL:/idr/collect/query
参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
appId | 是 | Long | 业务ID(后台获取) |
orderId | 是 | String | 商户订单号 |
orderNo | 否 | String | 平台订单号(响应快) |
sign | 是 | String | 签名 |
request
{
"appId": 1054,
"orderId": "M22222000028",
"sign": "EmyJGm3ELzG4FsOd0Krs9ncbSjo4oTGuXWML+7djYla3+VAwd9wS17z38p/7U2ZAjroO04XrE7YXcB1o76Dtyipj3h3bJzs7FYma1QNkMUdt9hh7m8U6hMsMQX7vIWHtXNwz4pbTSC75+kQWXaCew7KoE6LXECdJU8AISgNgeki2TK9R0pCfshr0Z2SZBPeuT6OvIH5LdmqgdZhuqnffGU2qnXk4KMkO848e6/WALLBR+LE1wyKHfPnYVcuKSMVYxkvKyyIL5JIPEgW0o5bh4RCbaUn3NZtyYwrU1uQ3ZDFRThm9j6XAQP+LBlmq3nOePqBtp/VDVarRaV+7FbQg3A=="
}
response
{
"status": "1",
"error": "00000000",
"msg": "",
"data": {
"orderId": "M22222000028",
"orderNo": "6023042811314347",
"amount": "50000.00",
"actualAmount": "0.00",
"fee": "0.00",
"status": 1,
"sign": "fP433ygWVDLVGxYkVnIJj7riGq0U3vyVX+MbBAImxfGLZkZcEAHVEoVYuULZSmXAAXKRSyd67WlDNm+24pougM54ofAoH4HMtCL2tfCoBReFyz3z02AGKkrKE2xWhSpWoqfQoBvzwuN5iGMMu0s9Q1YvqiwJ8WDVIENnmiIyD8qDJN7caHTW2US14/faG+69AvnuIgJ/nu7/jogOlgEYdZdVYU7gcRDE+d47KjlFGswQkJ/h/uzV7cWtUqrtOO7ZnZ3/z33Xx8awokX36QoYcPSWAU0h+Ij9O9402HNhm1eTbYcLU0uI/z8xCAtyAI/tTyiFijpiNlxUKQj+zKsILw=="
}
}
返回data参数说明
参数名 | 类型 | 说明 |
---|---|---|
orderId | String | 商户订单号(必须保证唯一性) |
orderNo | String | 平台订单号 |
amount | String | 交易金额 |
actualAmount | String | 收到金额 |
fee | String | 手续费 |
status | Integer | 状态(0未开始,1支付中,2成功(终态),3失败(终态), -1异常待确认) |
payTime | String | 支付成功时间(当status=2,4,5时有值)(印尼时间), 格式: yyyy-MM-dd HH:mm:ss |
errorMsg | String | 失败原因(当status=3时有值) |
sign | String | 签名 |
收款编码(inBankCode)
1.收银台模式:
payType=CASHIER
inBankCode=CASHIER
2.非收银台模式:
payType=QR (二维码)
bankCode | bankName |
---|---|
dynamic | dynamic qris |
payType=EWALLET(电子钱包)
bankCode | bankName |
---|---|
DANA | dana ewallet |
OVO | ovo ewallet |
payType=VA (银行VA)
bankCode | bankName |
---|---|
014 | BCA |
008 | Mandiri |
002 | BRI |
009 | BNI |
011 | Danamon |
013 | PERMATA |
022 | CIMB |