Verify Payment

Monicredit's Verify Payment API is designed to allow you to verify payments before delivering value to customers. Once a payment is successful, retrieve the transaction ID from the payload and use it

Parameters:

ParameterRequiredDescription

transaction_id

yes

The transaction ID is received by your customer when they initiate a payment.

private_key

yes

Your private key from Monicredit. Use test key for test mode and live key for live mode.

Endpoint: GET - {{baseUrl}}/payment/transactions/verify-transaction

Example Payload:

{
	"transaction_id": "ACX0000000000",
	"private_key": "PUB_00000000"
}

Success Response

{
    "status": true,
    "message": "Transaction Successfully",
    "orderid": "KJKGFKJGDKG",
    "data": {
        "amount": 200,
        "orderid": "KJKGFKJGDKG",
        "transid": "ACX0000000000",
        "date_paid": "2023-10-30 00:54:31",
        "status": "APPROVED",
        "channel": "TRANSFER",
        "balance": 0
    }
}

Failed Response

{
    "status": false,
    "message": "Transaction Not Successful",
    "orderid": "KNDFKJNDKBKJD",
    "data": {
        "amount": 200,
        "orderid": "KNDFKJNDKBKJD",
        "transid": "ACX000000000",
        "date_paid": "2023-10-30 00:54:31",
        "status": "PENDING",
        "channel": "TRANSFER"
    }
}

Invalid Response

{
    "status": false,
    "message": "Invalid Transaction"
}

Last updated