đ
Multi-Provider Mode
Omit the provider parameter to let customers choose their preferred payment provider at checkout for maximum conversion.
Appearance
Build secure, scalable payment solutions with our comprehensive API. Support for multiple providers, currencies, and instant settlement.
Omit the provider parameter to let customers choose their preferred payment provider at checkout for maximum conversion.
Specify a provider to enforce provider-specific currency and amount validation, creating a seamless single-gateway experience.
Real-time payment processing and webhook notifications to keep your system in sync.
Get your first payment up and running in under 5 minutes:
curl -X POST https://app.swiftspace.co/api/v1/payment \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"amount": 100.00,
"currency": "USD",
"email": "customer@example.com",
"webhook": "https://your-site.com/webhook"
}'const response = await fetch("https://app.swiftspace.co/api/v1/payment", {
method: "POST",
headers: {
Authorization: "Bearer your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
amount: 100.0,
currency: "USD",
email: "customer@example.com",
webhook: "https://your-site.com/webhook",
}),
});interface PaymentRequest {
amount: number;
currency: string;
email: string;
webhook: string;
}
const response = await fetch("https://app.swiftspace.co/api/v1/payment", {
method: "POST",
headers: {
Authorization: "Bearer your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
amount: 100.0,
currency: "USD",
email: "customer@example.com",
webhook: "https://your-site.com/webhook",
} as PaymentRequest),
});
const data = await response.json();
console.log(data);import requests
response = requests.post(
'https://app.swiftspace.co/api/v1/payment',
headers={
'Authorization': 'Bearer your-api-key',
'Content-Type': 'application/json'
},
json={
'amount': 100.00,
'currency': 'USD',
'email': 'customer@example.com',
'webhook': 'https://your-site.com/webhook'
}
)Specify a payment provider to enforce currency and amount validation. The API validates that:
curl -X POST https://app.swiftspace.co/api/v1/payment \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"amount": 100.00,
"currency": "USD",
"email": "customer@example.com",
"webhook": "https://your-site.com/webhook",
"provider": "stripe"
}'const response = await fetch("https://app.swiftspace.co/api/v1/payment", {
method: "POST",
headers: {
Authorization: "Bearer your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
amount: 100.0,
currency: "USD",
email: "customer@example.com",
webhook: "https://your-site.com/webhook",
provider: "stripe",
}),
});interface PaymentRequest {
amount: number;
currency: string;
email: string;
webhook: string;
provider?: string;
}
const response = await fetch("https://app.swiftspace.co/api/v1/payment", {
method: "POST",
headers: {
Authorization: "Bearer your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
amount: 100.0,
currency: "USD",
email: "customer@example.com",
webhook: "https://your-site.com/webhook",
provider: "stripe",
} as PaymentRequest),
});
const data = await response.json();
console.log(data);import requests
response = requests.post(
'https://app.swiftspace.co/api/v1/payment',
headers={
'Authorization': 'Bearer your-api-key',
'Content-Type': 'application/json'
},
json={
'amount': 100.00,
'currency': 'USD',
'email': 'customer@example.com',
'webhook': 'https://your-site.com/webhook',
'provider': 'stripe'
}
)If a provider is specified, the API returns validation errors for: