Start selling now
with our API, SDKs, or wrappers
curl --request POST \
--url 'https://testapi.multisafepay.com/v1/json/orders?api_key=YOUR_API_KEY' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '
{
"payment_options": {
"close_window": false,
"notification_method": "POST",
"notification_url": "https://www.example.com/webhooks/payment",
"redirect_url": "https://www.example.com/order/success",
"cancel_url": "https://www.example.com/order/failed"
},
"customer": {
"locale": "en_US"
},
"checkout_options": {
"validate_cart": false
},
"type": "redirect",
"order_id": "my-order-id-1",
"currency": "EUR",
"amount": 37485,
"description": "Test Order Description"
}
'
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://testapi.multisafepay.com/v1/json/orders?api_key=YOUR_API_KEY",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"payment_options\":{\"close_window\":false,\"notification_method\":\"POST\",\"notification_url\":\"https://www.example.com/webhooks/payment\",\"redirect_url\":\"https://www.example.com/order/success\",\"cancel_url\":\"https://www.example.com/order/failed\"},\"customer\":{\"locale\":\"en_US\"},\"checkout_options\":{\"validate_cart\":false},\"type\":\"redirect\",\"order_id\":\"my-order-id-1\",\"currency\":\"EUR\",\"amount\":37485,\"description\":\"Test Order Description\"}",
CURLOPT_HTTPHEADER => [
"Accept: application/json",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
import requests
url = "https://testapi.multisafepay.com/v1/json/orders?api_key=YOUR_API_KEY"
payload = {
"payment_options": {
"close_window": False,
"notification_method": "POST",
"notification_url": "https://www.example.com/webhooks/payment",
"redirect_url": "https://www.example.com/order/success",
"cancel_url": "https://www.example.com/order/failed"
},
"customer": {"locale": "en_US"},
"checkout_options": {"validate_cart": False},
"type": "redirect",
"order_id": "my-order-id-1",
"currency": "EUR",
"amount": 37485,
"description": "Test Order Description"
}
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const fetch = require('node-fetch');
const url = 'https://testapi.multisafepay.com/v1/json/orders?api_key=YOUR_API_KEY';
const options = {
method: 'POST',
headers: {Accept: 'application/json', 'Content-Type': 'application/json'},
body: JSON.stringify({
payment_options: {
close_window: false,
notification_method: 'POST',
notification_url: 'https://www.example.com/webhooks/payment',
redirect_url: 'https://www.example.com/order/success',
cancel_url: 'https://www.example.com/order/failed'
},
customer: {locale: 'en_US'},
checkout_options: {validate_cart: false},
type: 'redirect',
order_id: 'my-order-id-1',
currency: 'EUR',
amount: 37485,
description: 'Test Order Description'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://testapi.multisafepay.com/v1/json/orders?api_key=YOUR_API_KEY")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = 'application/json'
request["Content-Type"] = 'application/json'
request.body = "{\"payment_options\":{\"close_window\":false,\"notification_method\":\"POST\",\"notification_url\":\"https://www.example.com/webhooks/payment\",\"redirect_url\":\"https://www.example.com/order/success\",\"cancel_url\":\"https://www.example.com/order/failed\"},\"customer\":{\"locale\":\"en_US\"},\"checkout_options\":{\"validate_cart\":false},\"type\":\"redirect\",\"order_id\":\"my-order-id-1\",\"currency\":\"EUR\",\"amount\":37485,\"description\":\"Test Order Description\"}"
response = http.request(request)
puts response.read_body
Use our API, wrappers or SDKs to process payments, manage orders, create subscriptions, reconciliate, and more.
Start building your payments integration with our Self-made integrations guide.