POST /pg/payment/card/initiate HTTP/1.1
Host: devo.finnet.co.id
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 658
{
"customer": {
"id": "[email protected]",
"email": "[email protected]",
"firstName": "Hajar",
"lastName": "Ismail",
"mobilePhone": "+6281286288844"
},
"order": {
"id": "1680576995412",
"amount": "1000",
"currency": "IDR",
"description": "Testing",
"item": [
{
"name": "name",
"quantity": "1",
"category": "apa",
"description": "apalah",
"unitPrice": "100"
}
]
},
"url": {
"callbackUrl": "https://sandbox.finpay.co.id/simdev/finpay/result/resultfailed.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": "finpaycode",
"paymentCode": "8804483313131312"
}
}