Verify Transaction

//A code snippet of how to consume the API

var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "transaction_id": "ACX63061384264c8",
  "private_key": "PUB_TEST_998505000123"
});

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("https://demo.backend.monicredit.com/api/v1/payment/transactions/verify-transaction", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

POST https://demo.backend.monicredit.com/api/v1/payment/transactions/verify-transaction

Request Body

NameTypeDescription

transaction_id*

String

ACX000000

private_key*

String

PUB_TEST_0000000

{
    "status": true,
    "message": "Transaction Successfully",
    "orderid": "new111111",
    "data": {
        "amount": 10001,
        "orderid": "new111111",
        "transid": "ACX00000000",
        "date_paid": "2023-10-24 20:07:47",
        "status": "APPROVED",
        "channel": "TRANSFER",
        "balance": 0
    }
}

Last updated