Skip to main content
The Transit Payment Page is Payzah’s fully hosted checkout experience. After you send a single initialization request, Payzah redirects your customer to a branded payment page that supports K-Net, VISA, MasterCard, and Apple Pay — all in one place. Payzah handles the UI, security, and ongoing maintenance, so you can go live quickly without building a custom payment interface.

How Transit Integration Works

1

Send the Initialization Request with payment_type 3

From your server, send a POST request to the Payzah initialization endpoint with payment_type set to "3". This single value covers all supported payment methods, including Apple Pay.EndpointsHeaders
Your private key must be kept secret at all times. Never include it in front-end JavaScript, mobile app code, or any client-accessible resource. Always make this request from your backend server.Testing Private Key : 57726c6bace917f85a7d179197ca803a09b835da
Below is a complete sample initialization request body:
2

Read the transit_url from the Response

When your initialization request succeeds, Payzah returns a JSON response with status: true. The transit_url field contains the URL you will redirect your customer to. The direct_url field will be empty for Transit integrations.
Success Response
Extract and store the transit_url and PaymentID values. You will need PaymentID to correlate Payzah’s callback with your order records.
If status is false, do not redirect the customer. Log the error response, surface a friendly message to your customer, and allow them to retry or choose another payment method.
3

Redirect Your Customer to the Transit URL

Immediately redirect your customer’s browser to the transit_url value returned in the previous step. Payzah’s hosted payment page will load and present all available payment options — K-Net, VISA, MasterCard, and Apple Pay — in a single branded interface.
PHP Redirect
Express.js Redirect
Save the PaymentID to your order records before redirecting, so you can match it to the callback Payzah sends when the customer completes payment.
4

Handle the Success and Error Redirects

After your customer completes or abandons payment, Payzah redirects them back to either your success_url or error_url. These URLs receive the transaction result as query parameters.Key parameters returned to your URLsAt your success_url, verify that paymentStatus equals CAPTURED before fulfilling the order. Do not rely solely on the redirect to success_url as confirmation.Possible paymentStatus values

Why Use the Transit Payment Page?

The Transit Payment Page is the recommended integration path for most merchants because Payzah manages the full payment interface on your behalf.
If you need to send customers directly to a specific payment provider’s page without the intermediate Payzah-hosted step, see the Direct Integration guide instead.