Verify Payment via API
Confirm a transaction's status server-side using its transaction ID. Use this endpoint to validate a payment before fulfilling an order.
On this page
Endpoint
POST Verify payment
https://yallapay.net/api/transaction/verify
Headers
Headers
| Accept | application/json |
| Content-Type | application/json |
Request Body
BODY formdata
| private_key | Merchant Private Key (From merchant Dashboard) |
| trx_id | Transaction ID, e.g "123456789" |
In body add private_key and trx_id with their values from the merchant profile credentials and transactions page.
cURL Example
curl -X POST "https://yallapay.net/api/transaction/verify" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"private_key": "YOUR_PRIVATE_KEY",
"trx_id": "123456789"
}'
Always verify before fulfilling
Even if the customer is redirected back to your success page, call this endpoint server-side to confirm the payment is genuinely completed.
Visual Walkthrough

How to find transaction ID:

Success Response:

Failed:
