Integrate our products into your software. Let's make payment happen together!
Look at all the possibilities| Shopper Country | Sale | Refund | Authorise / Capture | Void | Token Vault | Mandates |
|---|---|---|---|---|---|---|
| Selected few | ✓ | ✓ | ✓ |
Terminal is limited to to countries that have access to CCV Terminals. A CCV Terminal is required.
Terminal is a payment method that lets you initiate a transaction on your CCV Terminal through the cloud. This flexible payment solution enables you to create your own custom solution for in-store payments, while still benefiting from the features of our Single API.
terminal
and use a webhook or
notification.Terminal needs some additional details to process the payment, such as the terminalId of the CCV Terminal to use for the payment. See Terminal Payment Details for more information about the details fields for Terminal payments.
{
"amount": 9.99,
"currency": "eur",
"method": "terminal",
"returnUrl": "https://shop/return?order=123456",
"webhookUrl": "https://shop/payhook?order=123456",
"merchantOrderReference": "123456",
"description": "Order 123456",
"language": "eng",
"details" : {
"port" : 6235,
"managementSystemId" : "000103030",
"ip" : "127.0.0.1",
"terminalId" : "1234536",
"accessProtocol" : "OPI_NL",
"operatingEnvironment" : "ATTENDED",
"merchantLanguage" : "NLD",
"supportPartialApproval" : true,
"acquirerDiscretionaryData" : "01",
"cardCircuitCollection" : [ "SODX", "EDRD", "PAYF" ]
}
}
{
"amount": 9.99,
"created": 1776151734603,
"currency": "eur",
"description": "Order 123456",
"details": {
"operatingEnvironment": "ATTENDED",
"port": 6235,
"managementSystemId": "1234567",
"ip": "188.165.118.154",
"terminalId": "1234567",
"wakeUpType": "CLOUD_CONNECT",
"merchantLanguage": "ita",
"accessProtocol": "OPI_NL"
},
"language": "ita",
"lastUpdate": 1776151734603,
"merchantOrderReference": "123456",
"method": "terminal",
"payUrl": "https://onlinepayments.ccv.eu/terminal/poll?reference=TL260414072854599CB87E19B.3",
"reference": "TL260414072854599CB87E19B.3",
"returnUrl": "https://shop/return?order=123456",
"status": "pending",
"type": "sale"
}
See Terminal Payment Details for more information about the details fields for Terminal payments.
When a terminal payment fails, the payment gets the status failed with a failure code.
When the terminal reports why the payment failed, this information is added to the payment details in the terminalError object.
This applies to every transaction type: sales, refunds, authorisations, captures and reversals.
The terminalError object is only present when the terminal provides this information. Each field is optional.
| Name | Description |
|---|---|
failureReason |
The failure reason as reported by the terminal. |
module |
The terminal module that reported the failure. |
hostDeclineReason |
The reason for the decline as reported by the host. |
hostDeclineReasonCode |
The decline code as reported by the host. |
terminalDeclineReason |
The reason for the decline as reported by the terminal. |
terminalDeclineReasonCode |
The decline code as reported by the terminal. |
The values are passed on as received from the terminal and new values can be added without notice.
Use them for logging and troubleshooting, for example to show the merchant why a payment was declined.
Do not use them to drive business logic: use the payment status and failureCode for that.
example response for a failed terminal payment
{
"amount": 9.99,
"currency": "eur",
"method": "terminal",
"reference": "TL260414072854599CB87E19B.3",
"status": "failed",
"failureCode": "processing_error",
"type": "sale",
"details": {
"operatingEnvironment": "ATTENDED",
"managementSystemId": "1234567",
"terminalId": "1234567",
"accessProtocol": "OPI_NL",
"terminalError": {
"failureReason": "TERMINAL_ERROR",
"module": "CTAP",
"hostDeclineReason": "DO_NOT_HONOUR",
"hostDeclineReasonCode": "100",
"terminalDeclineReason": "HOST_REFUSAL",
"terminalDeclineReasonCode": "2627"
}
}
}
You can simulate a failed payment with a terminalError in the test environment, see Payment testing.
When refunding terminal payments, 2 options are possible, as the original payment reference to refund is not required.
reference field in the refund request.
Then all the details from the original payment are used for the refund. The merchant can optionally provide additional fields in the refund request.amount, currency, language, details and method fields in the refund request.
No reference to the original payment is required in this case. The refund will be processed as a new terminal payment, but with the type refund.
The details field must contain all the required details for a terminal payment, as the details from the original payment are not used in this case.example request for terminal refund with original reference
curl --basic --user apikey: -H "Content-Type: application/json" --data '{
"reference": "TL260414072854599CB87E19B.4",
"merchantOrderReference" : "123456"
}' https://api.psp.ccv.eu/api/v1/refund
example request for terminal refund without original reference*
curl --basic --user apikey: -H "Content-Type: application/json" --data '{
"method": "TERMINAL",
"currency": "EUR",
"amount": 100.43,
"language": "ENG",
"merchantOrderReference" : "123456",
"details": {
"terminalId": "1234567",
"managementSystemId": "1234567",
"accessProtocol": "OPI_NL",
"ip": "192.168.1.154",
"port": "6235",
"operatingEnvironment": "ATTENDED",
"merchantLanguage": "ita"
},
"returnUrl" : "https://yourshop.com"
}' https://api.psp.ccv.eu/api/v1/refund