Skip to content
Test Initiate Payment

Test a BayadGate payment.

This demo uses the supplied server-side PHP signing flow and posts directly to the BayadGate checkout endpoint.

BayadGate Payment Test

PHP payment · Server-side request to BayadGate Gateway

Demo

Initiate payment

Create a test checkout

The merchant secret stays on the PHP server. It is never placed in the browser or JavaScript.

Amount

₱100.00

Order ID

ORDER_1791888713

Redirect URL

https://google.com

This uses the exact server-side test flow you supplied: the order ID is generated with time() and the amount is fixed at 100.00.

Request flow

1

Build payment data

merchant_id, order_id, amount and redirect_url

2

Sort and sign

The PHP server creates the MD5 signature with the merchant secret.

3

POST to BayadGate

Request is sent to /api/checkout.php.

4

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.