Code Examples
Replace <your-merchant-private-api-key> with your real key. Never log or expose it.
Classic:
POST /api/transact.php
Content-Type: application/x-www-form-urlencoded
security_key=<your-merchant-private-api-key>&ccnumber=4111111111111111&ccexp=1226&cvv=123&amount=10.00&type=sale&firstname=Jane&lastname=Doe&address1=100+Main+St&city=Chicago&state=IL&zip=60601&country=USNew:
POST /api/v5/payments/sale
Authorization: <your-merchant-private-api-key>
Content-Type: application/json
{
"amount": "10.00",
"payment_details": {
"card_number": "4111111111111111",
"card_exp": "1226",
"card_cvv": "123"
},
"billing_address": {
"first_name": "Jane",
"last_name": "Doe",
"address1": "100 Main St",
"city": "Chicago",
"state": "IL",
"zip": "60601",
"country": "US"
}
}Successfull sale response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"object": "transaction",
"id": "55667788",
"type": "cc",
"amount": "10.00",
"currency": "USD",
"auth_code": "183927",
"avs_response": "Y",
"cvv_response": "M",
"customer_vault_id": "",
"status": "pendingsettlement",
"response": "1",
"response_text": "",
"response_code": "100",
"processor_id": "example-proc",
"created_date": "2025-03-26T15:04:12.000Z",
"updated_date": "2025-03-26T15:04:12.000Z",
"payment_details": {
"card_number": "4***********1111",
"card_exp": "1226",
"card_type": "Visa",
"card_bin": "411111"
},
"billing_address": {
"first_name": "Jane",
"last_name": "Doe",
"address1": "100 Main St",
"city": "Chicago",
"state": "IL",
"zip": "60601",
"country": "US"
},
"actions": [
{
"id": "44332211",
"type": "sale",
"amount": "10.00",
"success": true,
"response": "1",
"response_text": "",
"response_code": "100",
"auth_code": "183927"
}
]
}Updated about 2 hours ago
