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
TXN20261014125738 verification_requested 100.00 PKR Awaiting verification 2026-10-14 12:57:46
TXN20261014041047 verification_requested 0.00 PKR Awaiting verification 2026-10-14 04:10:48
TXN20261012231917 verification_requested 0.00 PKR Awaiting verification 2026-10-12 23:19:19
TXN20261009035029 verification_requested 0.00 PKR Awaiting verification 2026-10-09 03:50:30
TXN20261002193311 verification_requested 0.00 PKR Awaiting verification 2026-10-02 19:33:12
TXN20260930155022 verification_requested 100.00 PKR Awaiting verification 2026-09-30 15:50:28
TXN20260924151527 verification_requested 100.00 PKR Awaiting verification 2026-09-24 15:15:32
TXN20260923040226 verification_requested 0.00 PKR Awaiting verification 2026-09-23 04:02:27
TXN20260922154959 verification_requested 0.00 PKR Awaiting verification 2026-09-22 15:50:00
TXN20260920172152 verification_requested 0.00 PKR Awaiting verification 2026-09-20 17:21:53