Authorization header alongside a Content-Type: application/json header. You choose between the test and production base URLs depending on your integration stage. All request and response bodies are JSON.
Authentication
Payzah authenticates your requests by reading theAuthorization header. You must Base64-encode your private key and pass it as the header value — no Bearer prefix, no additional wrapper.
The examples below show how to build the header in PHP and with cURL:
Base URLs
Use the test base URL while you are building and validating your integration. Switch to the production base URL only when you are ready to accept live payments.
All endpoint paths are identical across environments — only the base URL changes.
Required Request Headers
Include both of the following headers on every API request:Next Steps
Once your headers are in place, choose the payment initialization method that fits your checkout flow:- Initialize Transit — redirect customers to Payzah’s hosted payment page, which supports all payment methods including Apple Pay (
payment_type=3). - Initialize Direct — embed a direct link for K-Net (
payment_type=1) or Credit Card (payment_type=2) without a hosted page. - Payment Status — verify a transaction’s outcome after the customer is redirected back to your site.

