Skip to main content

Create Payment Link

Customers use bank virtual accounts to pay merchants

Request#

POST

/gateway/prepaidOrder

Parameter#

application/json

FieldTypeDescription
merchantCodestring [5..50] charactersUnique merchant code
orderNumstringThis number should be unique for merchant. Dupliated numbers won't be accepted by platform.
payMoneystringamount to pay
productDetailstring <=32 charactersdescription of the bill
methodstring NullablePayment method, details are below Payment Method list
namestring <=32 charactersThis name will be displayed on bill page
emailstring <email>User email address, if not available, can be any, format required xxx@gmail.com
phonestringUser phone number, if not available, can be any, format required 08xxxxxxxxxx
notifyUrlstring <url>When user completes payment, merchant will be notified on this url
redirectUrlstring <url>Redirect URL after user completes payment
expiryPeriodstring [30..7200] charactersorder/bill expiration time in minutes
dateTimestring <date-time>format yyyyMMddHHmmss
signstring <=512 charactersEncrypted parameters.

Request Example#

{
"merchantCode": "S2020198627344",
"method": "BCA",
"orderNum": "T202007183457183",
"payMoney": "10000",
"productDetail": "iPhone11",
"name": "Asmana",
"email": "user@bdpay.co.id",
"phone": "6282300138000",
"notifyUrl": "https://www.merchant-server/callback/pay",
"expiryPeriod": "30",
"dateTime": "2019-08-24T14:15:22Z",
"sign": "MIGfMA0GCSqGSI...w1ypbiy7VhIoFJbgSYSSHdC"
}

Response#

Success#

200 application/json

FieldTypeDescription
platRespCodestringresult code: "SUCCESS" "FAIL" "UNKNOWN" "NOTEXIST" "ERROR"
platRespMessagestringdescription of resp code
platOrderNumstringunique order number in platform wide.
orderNumstringunique order number in merchant wide. Same as orderNum in request body.
namestring <= 32 charactersThis name will be displayed on bill page when user pay to the VA
emailstring <email>customer email
urlstringpayment link
payMoneystringsame as field in request body.
platSignstringEncrypted response data

Response Example#

{
"platRespCode": "SUCCESS",
"platRespMessage": "success",
"platOrderNum": "BCA_1234567890",
"orderNum": "T202007183457183",
"name": "Asmana",
"email": "user@bdpay.co.id",
"url": "https://dev-openapi.bdpay.co.id/cash/?orderNum=PRE1920274712131407872",
"payMoney": "10000",
"platSign": "MIGfMA0GCSqGSI...w1ypbiy7VhIoFJbgSYSSHdC"
}

payment method#

CodeDescription
VA_BCABCA Bank Repayment Code
VA_MANDIRIMandiri Bank Repayment Code
VA_PERMATAPermata Bank Repayment Code
VA_CIMBCIMB Bank Repayment Code
VA_BNIBNI Bank Repayment Code
VA_BRIBRI Bank Repayment Code
VA_BNCBNC Bank Repayment Code
VA_SAMPOERNASAMPOERNA Bank Repayment Code
VA_MAYBANKMaybank Bank Repayment Code
VA_DANAMONDanamon Bank Repayment Code
RETAIL_ALFAMARTAlfamart Convenience Store
QRISQRIS scan code supports all electronic wallets, all kinds of bank scan code payment
EWALLET_DANADANA Wallet
EWALLET_OVOOVO Electronic Wallet