v1
latestOpenAPI 3.1.02026-07-24558778.0 KBPayments
Process credit card payment for a booking
Processes a credit card payment for the specified booking ID through the Adyen payment gateway.
This endpoint orchestrates a multi-step payment flow:
- Validates authentication and request structure
- Retrieves booking information from Transferz APIs
- Initiates payment in the Transferz system
- Prepares payment details with currency conversion
- Processes payment through Adyen
- Returns standardized success/error response
Supports 3D Secure authentication when browser information is provided.
post/bookings/{bookingId}/pay-by-creditcard
Path parameters
bookingIdstring required
The unique identifier of the booking to process payment for
Request body
Example request
{
"browserInfo": {
"javaEnabled": true,
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
"acceptHeader": "*/*",
"language": "nl",
"screenWidth": 1920,
"screenHeight": 1200,
"timeZoneOffset": 1,
"colorDepth": 48
},
"origin": "https://www.example.com",
"cardNumber": "5577000055770004",
"cardHolderName": "John Doe",
"expiryMonth": 3,
"expiryYear": 2030,
"cvc": "737",
"returnUrl": "https://www.example.com/return",
"shopperEmail": "john@example.com",
"shopperIp": "192.168.1.1"
}Response
Payment processed successfully
Example response
{
"result": "AUTHORISED"
}