payment_type set to "3", receive a transit_url in the response, and then redirect the customer to that URL. Payzah handles the payment method selection and card capture on its secure page before redirecting the customer back to your success_url or error_url.
Endpoint: POST /ws/paymentgateway/index
Refer to the API Overview for the base URLs and required authentication headers before making this request.
Request Parameters
Your unique identifier for this transaction. Alphanumeric only — no special
characters. Maximum 255 characters. You will use this value later to look up
the payment status.
The transaction amount as a plain decimal number (e.g.
"11.250"). Do not
include currency symbols, commas, or any other formatting characters. Maximum
10 characters.The ISO 4217 numeric currency code (e.g.
"414" for Kuwaiti Dinar). Maximum
3 characters.The URL Payzah redirects the customer to after a successful payment. Maximum
255 characters.
The URL Payzah redirects the customer to if the payment fails or is cancelled.
Maximum 255 characters.
Set to
"3" to use the hosted transit page, which includes all payment
methods and Apple Pay. Omitting this field defaults to the transit flow on
most accounts — explicitly passing "3" is recommended for clarity.The language displayed on the Payzah payment page. Accepted values:
"ENG"
(English) or "ARA" (Arabic). Maximum 3 characters. Defaults to "ENG" when
omitted.K-Net faster checkout customer ID, if your customer has previously enrolled
in K-Net’s fast-checkout program. Maximum 8 characters.
Customer’s full name, used for internal tracking and reconciliation. Maximum
255 characters.
Customer’s phone number, used for tracking. Maximum 255 characters.
Customer’s email address, used for tracking. Maximum 255 characters.
User-defined field 1. Store any custom data you need to associate with this
transaction. No special characters. Maximum 255 characters.
User-defined field 2. No special characters. Maximum 255 characters.
User-defined field 3. No special characters. Maximum 255 characters.
User-defined field 4. No special characters. Maximum 255 characters.
User-defined field 5. No special characters. Maximum 255 characters.
Multivendor / Deep-Linking Fields
If your platform settles payments across multiple sub-merchants, include the fields below to specify delivery costs and commission rules. These fields are optional for standard single-vendor integrations.Sample Request
cURL
Request Body
Response Fields
Success Response
true when the payment session was created successfully.Contains the URLs and identifiers needed to complete the payment flow.
Error Response
false when the request failed.A human-readable description of the error.
A numeric error code. See the Response Codes
reference for the full list.
Sample Responses
Success
Error
After a successful response, redirect your customer to the
transit_url
immediately. This URL is session-specific and expires — do not cache it or
delay the redirect. Once the customer completes or abandons the payment,
Payzah will redirect them to your success_url or error_url as specified
in the request.