Payment
const baseUrl ='https://asia-southeast2-deoapp-indonesia.cloudfunctions.net'paymentCreateVA
Available bank code
BNI, BRI, BJB, BNC, CIMB, DBS, MANDIRI, PERMATA
const url = `${baseUrl}/paymentCreateVa`
//paymentId === orderId
const data = {
"xenditId" : xenditId,
"orderId" : orderId,
"amount" : parseInt(2000),
"bankCode": "BRI",
"name":name,
"companyId": companyId,
"projectId":projectId,
"outletId": outletId, //if product sold online, please state ONLINE
"feeRule":true // true if user wants to add payment fee to customer
}
const options={
headers : {
'Content-Type': 'application/json',
'Authorization': process.env.REACT_APP_PAYMENTKEY
}}
axios.post(url,data,options)
.then((x)=>console.log(x))
// result
//{
// "status": "success",
// "data": {
// "status": true,
// "message": "",
// "data": {
// "owner_id": "xxx",
// "external_id": "xxx",
// "account_number": "xxx",
// "bank_code": "BRI",
// "merchant_code": "13282",
// "name": "",
// "is_closed": true,
// "expected_amount": 20000,
// "is_single_use": false,
// "status": "PENDING",
// "currency": "IDR",
// "country": "ID",
// "expiration_date": "2054-06-18T17:00:00.000Z",
// "id": "xxx"
// }
// }
// }
paymentCreateCash
paymentCreateQR
channel options
ID_DANA
ID_LINKAJA
paymentConfirmWithdraw
Last updated