General documentation

Request to create the order To create the order to be able to start the payment process, is needed to send a POST request to https://waynance.app/makeorder The following parameters are needed.

Headers

· 'Content-Type': 'application/json' Send the data in JSON format

Body

· invno: Integer number who will be the amount multiplied by 100 (for example, if the amount is 3€, this has to be 300, if the amount is 3,14€, this has to be 314)

· numberService: terminal number who can be found in the CRM

· currency: coin who will be used to make the payment

· apiKey: key to access the payment process order: product number url: url to get back

Once the request was success, the response will be in text format and this will be the identifier with which has to be use to go to https://orders.waynance.app?order=orderidentifier`. There will start the payment process

Curl example

curl --location 'https://waynance.app/makeorder' \
--header 'Content-Type: application/json' \
--data '{
"invno": 313,
"numberService": 110,
"currency": "EUR",
"apiKey": "apicodekey123",
"order": 35,
"url": "http://miempresa.com/"
}'

Fetch example (Javascript)

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
 "invno": 313,
 "numberService": 110,
 "currency": "EUR",
 "apiKey": "apicodekey123",
 "order": 35,
 "url": "http://miempresa.com/"
});
var requestOptions = {
 method: 'POST',
 headers: myHeaders,
 body: raw,
 redirect: 'follow'
};
fetch("https://waynance.app/makeorder", requestOptions)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));

Php curl example

<?php
$curl = curl_init();
curl_setopt_array($curl, array(
 CURLOPT_URL => 'https://waynance.app/makeorder',
 CURLOPT_RETURNTRANSFER => true,
 CURLOPT_ENCODING => '',
 CURLOPT_MAXREDIRS => 10,
 CURLOPT_TIMEOUT => 0,
 CURLOPT_FOLLOWLOCATION => true,
 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
 CURLOPT_CUSTOMREQUEST => 'POST',
 CURLOPT_POSTFIELDS =>'{
"invno": 313,
"numberService": 110,
"currency": "EUR",
"apiKey": "apicodekey123",
"order": 35,
"url": "http://miempresa.com/"
}',
 CURLOPT_HTTPHEADER => array(
 'Content-Type: application/json'
 ),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;

Last updated