Developpeurs

API REST

SOFTSYSTEM mobile money est une API unique.
Ci-dessous la syntaxe et la description: https://softsystempay.com/api/paymentgateway


DOCUMENTATION

EXEMPLES DE CODE

<?php
$client = new http\Client;
$request = new http\Client\Request;
$request->setRequestUrl('https://softsystempay.com/api/paymentgateway');
$request->setRequestMethod('POST');
$body = new http\Message\Body;
$body->append('{
"montant": "10",
"currency": "XOF",
"error_url": "https://softsystempay.com",
"callback_url": " https://softsystempay.com ",
"client_reference": "940850",
"canal": "mtn",
"success_url": "https://softsystempay.com",
"orderId": "DDFGXFGDG",
"numero": "0595361579",
"objet": "TEST de paiement"
}
');
$request->setBody($body);
$request->setOptions(array());
$request->setHeaders(array(
'Authorization' => 'Bearer 0539d6268b10b842fd9fc039eeddb7587d665d3869c23c894fe0c26496876e83',
'Content-Type' => 'text/plain'
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
var settings = {
"url": "https://softsystempay.com/api/paymentgateway",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer 0539d6268b10b842fd9fc039eeddb7587d665d3869c23c894fe0c26496876e83",
"Content-Type": "text/plain"
}, "data": "{\r\n\"montant\":
\"10\",\r\n
\"currency\": \"XOF\",
\r\n \"error_url\": \"
https://softsystempay.com\",
\r\n \"callback_url\":
\" https://softsystempay.com \",\r\n
\"client_reference\": \"940850\", \r\n
\"canal\": \"mtn\", \r\n
\"success_url\": \"https://softsystempay.com\", \r\n
\"orderId\": \"DDFGXFGDG\",\r\n
\"numero\": \"0595361579\",\r\n
\"objet\": \"TEST de paiement\"\r\n
}\r\n",
};
$.ajax(settings)
.done(function (response)
{
console.log(response);
});
var unirest = require('unirest');
var req = unirest
('POST', 'https://softsystempay.com/api/paymentgateway')
.headers({
'Authorization': 'Bearer 0539d6268b10b842fd9fc039eeddb7587d665d3869c23c894fe0c26496876e83',
'Content-Type': 'text/plain'
})
.send("{\r\n\"montant\":
\"10\",\r\n
\"currency\": \"XOF\",\r\n
\"error_url\":
\"https://softsystempay.com\",\r\n
\"callback_url\":
\" https://softsystempay.com \",\r\n
\"client_reference\": \"940850\", \r\n
\"canal\": \"mtn\", \r\n
\"success_url\": \"https://softsystempay.com\", \r\n
\"orderId\": \"DDFGXFGDG\",\r\n
\"numero\": \"0595361579\",\r\n
\"objet\": \"TEST de paiement\"\r\n
}\r\n")
.end(function (res)
{
if (res.error)
throw new Error(res.error);
console.log(res.raw_body);
});
import requests
url = "https://softsystempay.com/api/paymentgateway"
payload = "{\r\n\"montant\": \"10\",\r\n
\"currency\": \"XOF\",\r\n \"error_url\":
\"https://softsystempay.com\",\r\n \"callback_url\": \" https://softsystempay.com \",\r\n
\"client_reference\": \"940850\", \r\n \"canal\": \"mtn\",
\r\n \"success_url\": \"https://softsystempay.com\", \r\n
\"orderId\": \"DDFGXFGDG\",\r\n \"numero\": \"0595361579\",\r\n
\"objet\": \"TEST de paiement\"\r\n }\r\n"
headers = { 'Authorization': 'Bearer 0539d6268b10b842fd9fc039eeddb7587d665d3869c23c894fe0c26496876e83', 'Content-Type': 'text/plain'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)

Moyens de paiements acceptés

logo
logo
logo
logo
logo
logo
logo