Submit a credit card payment without redirecting the customer to a hosted form. The cardholder data is sent server-to-server.
Body
order
Your unique reference for this order.
Amount to charge in your local currency.
Short description shown on the customer’s statement and dashboard.
HTTPS URL that will receive status updates (postback).
Number of installments. Defaults to 1.
Payment method identifier. Use credit_card.
customer
Full name (first and last).
Phone number with country code.
Customer tax ID (CPF for Brazil).
Customer identifier on your platform.
Date of birth (YYYY-MM-DD).
credit_card
Cardholder name as printed on the card.
Card number, digits only.
Expiration date in MM/YYYY format.
One of visa, master, amex, elo, aura, jcb, diners, discover, hipercard, hiper, sorocred.
address
risk
Customer’s IP at the time of purchase.
Device fingerprint identifier.
Response
Initial status (typically waiting_payment).
curl -X POST https://api-eu.sulpayments.ch/v1/order \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"order": {
"partner_code": "ORDER-001",
"value": 100.00,
"description": "Subscription",
"notification_url": "https://yourapp.com/webhooks/order",
"installments": 1,
"payment_method": "credit_card"
},
"customer": {
"name": "Jane Doe",
"email": "jane@example.com",
"phone": "+5511999999999",
"document": "12345678909"
},
"credit_card": {
"holder": "JANE DOE",
"number": "4111111111111111",
"cvv": "123",
"due_date": "12/2030",
"brand": "visa"
}
}'
{
"id": "ord_5f1a3b2c",
"status": "waiting_payment"
}