Skip to main content

Inisiasi Pembayaran

Body Request

NoNameTypeMandatoryMin LengthMax LengthDescription
1 orderObjectM112Detail of Order
2 customerObjectM18Detail of Customer
3 urlObjectM14Detail of Url
4 billingObjectM11Detail of Billing
5 shippingObjectO14Detail of Shipping
6 metaObjectM11Detail of MetaData
7 cardObjectO17Detail of Card
8 recurringObjectO111Detail of Recurring
9 sourceOfFundsObjectM111Detail of SourceOfFunds
10 deviceObjectO17Detail of Device

Sample Request

{
"order": {
"id": "TRVIDN-DS000001",
"amount": "200000",
"description": "Package Trip Bali 5D4N",
"item": [
{
"name": "VOA",
"quantity": "1",
"unitPrice": "100000",
"subMerchantId": "MPN001"
},
{
"name": "Service Charge",
"quantity": "1",
"unitPrice": "100000",
"subMerchantId": "VFS001"
}
]
},
"customer": {
"email": "albert@gmail.com",
"firstName": "Albert",
"lastName": "Andreas",
"mobilePhone": "+6285108014914"
},
"url": {
"callbackUrl": "https://sandbox.finpay.co.id/simdev/finpay/result/tangkapCurl.php"
},
"billing": {
"billerServiceProvider": {
"customerId": "118120000441100",
"id": "050017",
"subId": "DP1002",
"type": "post"
}
},
"sourceOfFunds": {
"type": "cc"
}
}

Body Response

NoNameTypeMandatoryMin LengthMax LengthDescription
1 statusCodeEnumO110Status Code
2 StatusDescStringO1150Response Message
3 paymentCodeStringO130Payment Code
4 redirectUrlStringO1320Redirect URL

Sample Response

{
"responseCode": "2000000",
"responseMessage": "Success",
"redirecturl": "https://devo.finpay.id/pg/payment/card/access/32067d326642e071a66eed548822f0ef0c00adea760b1204b89e1ee95e12bd24",
"expiryLink": "2022-09-06 17:02:18",
"processingTime": 0.6609270572662354
}