checkout Standard Checkout API

Integrate Fatora Standard Checkout with your website to start accepting online payments from your clients.

Integration Steps:

Request a checkout URL from Fatora payment gateway.

The following endpoint is used for request a checkout URL in your (backend) server.
curl -X POST '' \
--header 'Content-Type: application/json' \
--header 'api_key:  E4B73FEE-F492-4607-A38D-852B0EBC91C9' \
--data-raw '{
"client" : {
    "name" : "client",
    "phone" : "+974 77777777",
    "email" : "[email protected]"
"success_url" : "",
"failure_url" : "",
"fcm_token" : "XXXXXXXXX",
"save_token" : true,
"note": "some additional info"
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => '',
    'Content-Type: application/json',
    'api_key:  E4B73FEE-F492-4607-A38D-852B0EBC91C9'
"client" : {
    "name" : "client",
    "phone" : "+974 77777777",
    "email" : "[email protected]"
"success_url" : "",
"failure_url" : "",
"fcm_token" : "XXXXXXXXX",
"save_token" : true,
"note": "some additional info"


$response = curl_exec($curl);

echo $response;
using (var httpClient = new HttpClient())
    using (var request = new HttpRequestMessage(new HttpMethod("POST"), ""))
        request.Headers.Add("api_key", "E4B73FEE-F492-4607-A38D-852B0EBC91C9");
        request.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json");
        Payment payment = new Payment()
            amount = 123.100,
            currency = "QAR",
            order_id = "123456",
            client = new Client() {
                name  = "client",
                phone = "+974 77777777",
                email = "[email protected]"
            language = "ar",
            success_url = "",
            failure_url = "",
           "fcm_token" = "XXXXXXXXX",
            save_token = true,
            note = "some additional info"
        string payload = JsonConvert.SerializeObject(payment);
        request.Content = new StringContent(payload);
        var response = httpClient.SendAsync(request);
"result": {
    "checkout_url": ""
} }

Try it now: Standard Checkout API

Header Parameters

Header Value
api_key REQUIRED Use the valid API key of your Fatora account. Read more information about Authentication.
Content-Type REQUIRED application/json

Request Parameters

Parameter Description
amount REQUIRED decimalIndicates the amount of the payment request. The dot is used as a decimal separator.
currency OPTIONAL

stringCurrency used for the order. Use the three-character ISO Standard Currency Codes e.g. USD, default is QAR

order_id OPTIONAL stringA unique identifier for order in your application OPTIONAL stringThe client's full name. REQUIRED-IF stringThe client's phone number including country code.
e.g. +974 7777 7777.
It is required only if does not provided. REQUIRED-IF stringThe valid client's email.
e.g. [email protected].
it is required only if does not provided.
language OPTIONAL stringValue representing the browser language of checkout payment page. enum values [en, ar], default is en.
success_url OPTIONAL stringIt is a valid URL to redirect your client when successfully payment completion.
If the URL is not provided, the redirection will be stopped at Fatora`s default Fatora success page.
failure_url OPTIONAL string It is a valid URL to redirect your client when failure payment completion.
If the URL is not provided, the redirection will be stopped at Fatora`s default Fatora failure page.
fcm_token OPTIONAL string It is the registration token in Firebase Cloud Messaging, to receive message after payment completion. Read more information about Mobile Integration.
save_token OPTIONAL booleanTo accept and save the payment card using a card token, For more information read about Tokenization Integration.

Possible values:

  • true - You are accepting save card payments.
  • false (default) - You are not accepting save card payments.

note OPTIONAL stringAdditional information about order, IT will appear in invoice title after successful payment


The successful request returns the HTTP 200 OK status code and a JSON response body that shows the checkout url to which you should redirect your client to fill his card data.

Response Schema: application/json
status string the status of response.
result objectThe URL of checkout page:
  • checkout_url object, it`s value:

Otherwise if there was a problem with your request, you'll receive an error response such as 400 status code, and the response will include an error object describing why this request failed.

Response Schema: application/json
status string The status of response.
error object:
  • error_code string, the naumber of error: e.g: 400, For more information
    see Response Code
  • description string, the description of error: e.g: bad request

Redirect to the checkout page

Redirect your client to the checkout page using the URL which you have received in the response above, using either a server-side or client-side call.


Payment completion

When your client completes the payment, the Fatora gateway will redirect to the default Fatora success | failure page, and if you pass success_url | failure_url at requesting Standard Checkout API, Fatora will redirect after 2 seconds to the (success | failure) page including order_id, transaction_id, and response_code in the query parameters.

Redirect to:
Redirect to:

Parameters Description

Parameters Description
transaction_id stringThe transaction id of payment issued from bank. You must keep this ID for future requests or to follow bank.
order_id stringThe same unique identifier for order in your application which you sent on request checkout API.
card_token string It is an unique identifier will be used in collect new payment API. It returns only when passed save_token = true.
mode stringThe value of your integration mode, enum values ["test", "live"].
response_code stringThe value of response code
description stringAdditional information about transaction.

webhook Webhook

Webhook is used for asynchronous events after payment completion whether it has been done successfully or failure. Fatora gateway trigger your webhook, passing parameters to URL in this form:

Webhook Configuration:

In order to configure the webhook, provide your webhook URL. Please follow the below steps:

  1. Log in to your Fatora account.

  2. Choose the Integration from the sidebar navigation, then click on Settings.

The configuration webhook is an optional setting. If you want your app to be notified after each payment, you have to setup the webhook in your Fatora account, provide your webhook URL. Please follow the below steps:

🛠️ Technical Support