Direct Server to Server Payment
Process a credit card payment via Server-to-Server API.
Endpoint Information
Name: Make Direct Server to Server Payments
Method: POST
URL: {{base_url}}/api/v1/payment/process-transaction
Authentication
Type: Basic Auth
- Username: App Key
- Password: Secret Key
Request Body
Content-Type: application/json
{
"firstName": "John",
"middleName": "", // optional
"lastName": "Doe",
"reference": "DuqXNBv0Q", // must be more than 10 characters and special characters are not allowed
"email": "[email protected]",
"dob": "1990-01-01", // format must be yyyy-mm-dd
"contactNumber": "+12345678",
"address": "SE",
"country": "Sweden",
"state": "N/A",
"city": "N/A",
"zipCode": "1212",
"currency": "USD", // ISO 4217 format
"amount": "55.00",
"ttl": 5,
"tagName": "VIP Tag",
"webhookUrl": "", // optional
"merchantAccountId": "{{your_account_no}}",
"solutionUniqueId": [],
"card": "{{test_card}}",
"secret": "123",
"expiry_date": "06/24",
"card_name": "MD X",
"customerBrowserUserAgent": "Mozilla 52.0",
"customerIP": "1.1.1.1"
}
{
"success": true,
"message": "Payment Request Processed",
"data": {
"success": true,
"reference_id": "11-DuqXNBv0Q2",
"redirect_to": null
}
}
{
"success": true,
"message": "Payment Request Failed",
"data": {
"success": true,
"reference_id": "11-DuqXNBv0Q",
"redirect_to": "https://staging.centralisera.com/three_d/acs/redirect?payment_id=11-DuqXNBv0Q"
}
}
{
"success": false,
"message": "Merchant Authentication failed",
"errors": {
"Auth": [
"Merchant Authentication failed"
]
}
}