Test a BayadGate payment.
This demo uses the supplied server-side PHP signing flow and posts directly to the BayadGate checkout endpoint.
Initiate payment
Create a test checkout
The merchant secret stays on the PHP server. It is never placed in the browser or JavaScript.
Request flow
Build payment data
merchant_id, order_id, amount and redirect_url
Sort and sign
The PHP server creates the MD5 signature with the merchant secret.
POST to BayadGate
Request is sent to /api/checkout.php.
Open checkout
On success, the returned checkout URL is available to proceed.
Important
This page must run through PHP with cURL enabled. Do not move the merchant secret into client-side JavaScript.
Using the supplied BayadGate test-initiate payment flow with merchant ID 23, a PHP-generated order ID, and a fixed test amount of 100.00. Keep credentials server-side.