APG REST API checkout

Checkout, verification, and log history

Step 1 sends the handshake and transaction requests. Step 2 submits OTP or OTAC. Step 3 writes the final status to a log file.

Sandbox
Testing environment for APG merchant credentials.

New payment

Fill in the payment details below. Merchant credentials stay in config.php.

Merchant values are hidden in config.php and never shown in the form.

This sends the APG handshake and transaction requests from PHP, then waits for the final verification step.

Payment log

The latest APG attempts are written to a log file and shown here.

Reference Event Amount Status Logged
TXN20260829145605 verification_requested 0.00 PKR Awaiting verification 2026-08-29 14:56:06
TXN20260828045455 verification_requested 0.00 PKR Awaiting verification 2026-08-28 04:54:56
TXN20260823215618 verification_requested 0.00 PKR Awaiting verification 2026-08-23 21:56:20
TXN20260812003542 verification_requested 0.00 PKR Awaiting verification 2026-08-12 00:35:43
TXN20260811165834 verification_requested 100.00 PKR Awaiting verification 2026-08-11 16:58:39
TXN20260810115150 verification_requested 100.00 PKR Awaiting verification 2026-08-10 11:51:55
TXN20260731202350 verification_requested 0.00 PKR Awaiting verification 2026-07-31 20:23:51
TXN20260725113107 verification_requested 0.00 PKR Awaiting verification 2026-07-25 11:31:08
TXN20260717050125 verification_requested 0.00 PKR Awaiting verification 2026-07-17 05:01:30
TXN20260714114253 verification_requested 0.00 PKR Awaiting verification 2026-07-14 11:42:55