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
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 Extract and store the
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
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
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 valuesWhy 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.

