LinkAja
Environment | Method | URL |
---|---|---|
Development | POST | https://devo.finnet.co.id/pg/payment/card/initiate |
Production | POST | https://live.finnet.co.id/pg/payment/card/initiate |
Body Request
No | Name | Type | Mandatory | Min Length | Max Length | Description |
---|---|---|---|---|---|---|
1 | order | Object | M | 1 | 12 | Detail of Order |
2 | customer | Object | M | 1 | 8 | Detail of Customer |
3 | url | Object | M | 1 | 4 | Detail of Url |
4 | billing | Object | O | 1 | 1 | Detail of Billing |
5 | shipping | Object | O | 1 | 4 | Detail of Shipping |
6 | meta | Object | O | 1 | 1 | Detail of MetaData |
7 | card | Object | O | 1 | 7 | Detail of Card |
8 | recurring | Object | O | 1 | 11 | Detail of Recurring |
9 | sourceOfFunds | Object | M | 1 | 11 | Detail of SourceOfFunds |
10 | device | Object | O | 1 | 7 | Detail of Device |
Sample Request
{
"customer": {
"email": "hajar.finnet@gmail.com",
"firstName": "Hajar",
"lastName": "Ismail",
"mobilePhone": "+6281286288844"
},
"order": {
"id": "1680578280680",
"amount": "200",
"description": "Testing",
"item": [
{
"name": "name",
"quantity": "1",
"unitPrice": "100"
},
{
"name": "name",
"quantity": "1",
"unitPrice": "100"
}
]
},
"url": {
"callbackUrl": "https://sandbox.finpay.co.id/simdev/finpay/result/resultsuccess.php",
"successUrl": "https://sandbox.finpay.co.id/simdev/finpay/result/resultsuccess.php",
"failUrl": "https://sandbox.finpay.co.id/simdev/finpay/result/resultfailed.php"
},
"sourceOfFunds": {
"type": "linkaja"
}
}
Body Response
No | Name | Type | Mandatory | Min Length | Max Length | Description |
---|---|---|---|---|---|---|
1 | responseCode | Enum | M | 1 | 7 | Response Code |
2 | responseMessage | String | M | 1 | 500 | Response Message |
3 | paymentCode | String | C | 1 | 30 | Payment Code |
4 | redirecturl | String | C | 1 | 320 | Redirect URL |
5 | expiryLink | String | C | 1 | 19 | Expiry Link |
6 | processingTime | Number | C | 1 | 20 | Processing Time |
7 | appurl | String | C | 1 | 320 | App URL |
8 | imageurl | String | C | 1 | 320 | Image URL |
9 | accountList | Array | C | 1 | 4 | Account List |
Sample Response
{
"responseCode": "2000000",
"responseMessage": "Success",
"redirecturl": "https://linkaja.id/applink/payment?data=80iQe4Jc5I0ytddCTohoak13BpM5jJ2zBqXx-nybAhzQyIKvqgkZ4RFqHpQUpiyteWZwtLKeEw9cQoDgIyoHQEqnaUnrMVJQgu9-BSm8yOR-XIYMFBpfB3IAt_defXhBmRCztoZNdfpG599W35AztR4p-ogye_M4Og3-YaJewTKTsC6R-O8lEtGmJqOkFqEp7-Zs_hMAk5u8ctEITVRbBZd3ZaWvKe8teFVPL7Nq3tqvpdxvhWW0Kq-C3yy-Js7wqmwOqh9KfGoo3Ia3ZmcwDc-v5Egg7iouVbJq3IJVzSixPL5xCtRx5r6VmLpOnxYH9lGQNJ7ocma5WQP51vlIMfBPM22rdginjuhvMdQ6es3EIN7jdMameTCf9bzAblyO-s8vnMcjf6A_v4Kr5zD386cL0Udk2JKPrhJpkh72DlvZUFWtOAnuFSZJhTKTpjrJB35bZ5WC0912N0vjUT7_B-9fE6YihQSNcgVml3z1Al-r_UZuzq78ky8ZBat5YMKEkYUvlBe39xm47poSFOcz3iSis3EKI2ZRvHOszVEMCpnfMxWSaQ==",
"expiryLink": "2023-04-04 10:33:01",
"paymentCode": null,
"processingTime": 0.21193885803222656
}