Accept a payment
Send the price. You get a payment link. Your buyer picks a coin and pays. The money lands in your Deluxiam wallet.
POSThttps://deluxiam.com/api/create-paymentFee 0.5%. The buyer has 1 hour to pay. Minimum 1 USD.
curl -X POST "https://deluxiam.com/api/create-payment" -H "Accept: application/json" -H "Content-Type: application/json" -d "{\"client_secret\": \"your_client_secret_here\", \"amount\": \"25\", \"currency\": \"USD\", \"receive_currency\": \"USDT\", \"order_id\": \"1001\", \"callback_url\": \"https://yourshop.com/ipn\", \"success_url\": \"https://yourshop.com/thanks\"}"import requests
r = requests.post("https://deluxiam.com/api/create-payment", json={
"client_secret": "your_client_secret_here",
"amount": "25",
"currency": "USD",
"receive_currency": "USDT",
"order_id": "1001",
"callback_url": "https://yourshop.com/ipn",
"success_url": "https://yourshop.com/thanks"
})
payment = r.json()["payment"]
print(payment["checkout_url"]) # send your buyer hereconst r = await fetch("https://deluxiam.com/api/create-payment", {
method: "POST",
headers: { "Content-Type": "application/json", "Accept": "application/json" },
body: JSON.stringify({
client_secret: "your_client_secret_here",
amount: "25",
currency: "USD",
receive_currency: "USDT",
order_id: "1001",
callback_url: "https://yourshop.com/ipn",
success_url: "https://yourshop.com/thanks"
})
});
const { payment } = await r.json();
console.log(payment.checkout_url); // send your buyer here<?php
$ch = curl_init("https://deluxiam.com/api/create-payment");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json", "Accept: application/json"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
"client_secret" => "your_client_secret_here",
"amount" => "25",
"currency" => "USD",
"receive_currency" => "USDT",
"order_id" => "1001",
"callback_url" => "https://yourshop.com/ipn",
"success_url" => "https://yourshop.com/thanks"
]));
$payment = json_decode(curl_exec($ch), true)["payment"];
header("Location: " . $payment["checkout_url"]); // send your buyer here
?>{
"status": true,
"payment": {
"id": "8f2c1a9b3d4e5f60",
"order_id": "1001",
"status": "new",
"price_amount": "25",
"price_currency": "USD",
"pay_currency": null,
"pay_amount": null,
"pay_address": null,
"qr_code_url": null,
"receive_currency": "USDT",
"checkout_url": "https://deluxiam.com/pay/8f2c1a9b3d4e5f60"
}
}
With "pay_currency": "BTC" you also get right away:
"status": "waiting",
"pay_currency": "BTC",
"pay_amount": "0.00030491",
"pay_address": "bc1q...",
"qr_code_url": "https://deluxiam.com/pay/8f2c1a9b3d4e5f60/qr",
"expires_at": "2026-10-20T03:30:00Z"