This shows you how to verify transactions using the transaction ID

After a successful charge, you need to verify that the payment was successful with PayChangu before giving value to your customer on your website. For every transaction, you must supply a transaction ID

Below is a sample code of how to implement server-side validation

curl -X GET "{tx_ref}"
-H "Accept: application/json"
-H "Authorization: Bearer {secret_key}"

Verification response

Here's a sample verification response

    "message": "Payment details",
    "status": "success",
    "data": {
        "first_name": "Mac",
        "last_name": "Phiri",
        "email": "[email protected]",
        "currency": "MWK",
        "amount": "10,000.00",
        "charge": "400.00",
        "mode": "test",
        "type": "API",
        "status": "success",
        "reference": "20193542126",
        "tx_ref": "2346vrcdssdadffx",
        "customization": {
            "title": "Test Payment",
            "description": "Payment Description",
            "logo": "https://logo.png"
        "meta": {
            "uuid": "uuid",
            "response": "Response"
        "created_at": "2023-07-12T10:22:02.000000Z",
        "updated_at": "2023-07-12T10:22:02.000000Z"