API Reference

Endpoint

This is your first step for integration , you will send request for our end point to receive the payment methods which assigned to you.

The "InitiatePayment" endpoint is a GET request. It is used to retrieve all enabled Payment Methods of your portal account with the commission charge that the customer may pay on the gateway.

PLEASE USE THE BELOW END POINT:
https://staging.fawaterk.com/api/v2/getPaymentmethods

also below is sample request and response codes

<?php
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://staging.fawaterk.com/api/v2/getPaymentmethods',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer d83a5d07aaeb8442dcbe259e6dae80a3f2e21a3a581e1a5acd'
  ),
));
$response = curl_exec($curl);
curl_close($curl);
var client = new RestClient("https://staging.fawaterk.com/api/v2/getPaymentmethods");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("content-type", "application/json");
request.AddHeader("Authorization", "Bearer d83a5d07aaeb8442dcbe259e6dae80a3f2e21a3a581e1a5acd");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
var myHeaders = new Headers();
myHeaders.append("content-type", "application/json");
myHeaders.append("Authorization", "Bearer d83a5d07aaeb8442dcbe259e6dae80a3f2e21a3a581e1a5acd");

var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  redirect: 'follow'
};

fetch("https://staging.fawaterk.com/api/v2/getPaymentmethods", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
import requests
import json

url = "https://staging.fawaterk.com/api/v2/getPaymentmethods"

payload={}
headers = {
  'content-type': 'application/json',
  'Authorization': 'Bearer d83a5d07aaeb8442dcbe259e6dae80a3f2e21a3a581e1a5acd'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
import requests
import json

url = "https://dev.fawaterk.com/api/v2/getPaymentmethods"

payload={}
headers = {
  'content-type': 'application/json',
  'Authorization': 'Bearer 0b3fefb44fd628870b751793224d6334fea5d38300641e36aa'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Response Body

{
    "status": "success",
    "data": [
        {
            "paymentId": 2,
            "name_en": "Visa-Mastercard",
            "name_ar": "فيزا -ماستر كارد",
            "redirect": "true",
            "logo": "https://app.fawaterak.xyz/clients/payment_options/mastercard-visa.png"
        },
        {
            "paymentId": 3,
            "name_en": "Fawry",
            "name_ar": "فوري",
            "redirect": "false",
            "logo": "https://app.fawaterak.xyz/clients/payment_options/fawry.png"
        },
        {
            "paymentId": 4,
            "name_en": "Meeza",
            "name_ar": "ميزا",
            "redirect": "false",
            "logo": "https://app.fawaterak.xyz/clients/payment_options/MeezaDigitalSmall.png"
        }
     
    ]
}

IMPORTANT NOTES

1.please note that if redirect attribute equal to "TRUE" then you will receive a link you need to redirect to it to complete the payment process.

2.Kindly note that Meeza (Mobile wallets ) tested by real payments only.