Payment Methods
Payment Methods
POST https://sandbox.mnasati.com/v1/payment_methods
This endpoint allows you to get all the available payment methods.
Headers
Name
Type
Description
Content-Type
string
Application/JSON
Access Token
string
Authentication token JWT.
{
"status":true,
"payment_methods":[
]
}{ "message": "not found."}Examples
import http.client
conn = http.client.HTTPSConnection("sandbox.mnasati.com")
headers = {
'Content-Type': "",
'Authorization-Jwt': ""
}
conn.request("POST", "/v1/payment_methods", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.mnasati.com/v1/payment_methods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization-Jwt: ",
"Content-Type: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}Last updated
Was this helpful?