Integrate our products into your software. Let's make payment happen together!
Look at all the possibilitiesA sale allows a merchant to receive money from to the customer for a payment. Depending on the payment method it may require an additional authentication step.
This requires the payment method to support authorisations. You can view the supported payment methods here.
Initiate a new payment
Example request
curl --basic --user apikey: -H "Content-Type: application/json" --data '{
"transactionType": "sale",
"amount": 9.99,
"currency": "eur",
"method": "card",
"returnUrl": "https://shop/return?order=123456",
"webhookUrl": "https://shop/payhook?order=123456",
"merchantOrderReference": "123456",
"description": "Order 123456",
"language": "eng"
}' https://api.psp.ccv.eu/api/v1/payment
Example response
{
"lastUpdate": 1709620979582,
"cancelUrl": "https://onlinepayments.ccv.eu/card/cancel/merchant?reference=C240305064258677CB87E192.G",
"created": 1709620979582,
"payUrl": "https://onlinepayments.ccv.eu/card/payment.html?reference=C240305064258677CB87E192.G",
"amount": 9.99,
"description": "Order 123456",
"status": "pending",
"reference": "C240305064258677CB87E192.G",
"merchantOrderReference": "123456",
"method": "card",
"type": "sale",
"language": "eng",
"currency": "eur",
"returnUrl": "https://shop/return?order=123456"
}
In order to complete the payment, you’ll need to redirect your customer
to the payment url (payUrl
) as returned in the payment response.
Depending on the payment method, the customer perform an authentication. In case of card payments, we use 3-D Secure to verify the customers identity.
As a final result, we return the customer back to your shop.
The shop url is provided by you as returnUrl
when you initiated the request in step 1.
At this point you don’t know whether the payment is successful or not.
Example request
curl --basic --user apikey: https://api.psp.ccv.eu/api/v1/transaction?reference=C240305064258677CB87E192.G
Example response
{
"lastUpdate": 1709621105740,
"statusFinalDate": 1709621105740,
"cancelUrl": "https://onlinepayments.ccv.eu/card/cancel/merchant?reference=C240305064258677CB87E192.G",
"created": 1709620979582,
"methodTransactionId": "tMuzqg",
"entryMode": "ecom",
"brand": "visa",
"details": {
"cardholderFirstName": "John",
"initialTransactionId": "p3GNcBD4tLFo800",
"qrCode": "https://shop-vpos-test.ccvlab.eu/bep/authenticate.html?secureTransferId=1d584a8f-58fc-4704-a92d-9955e678b932&trm=50",
"maskedPan": "4111XXXXXXXX1111",
"acquirerResponseCode": "00",
"urlIntent": "https://shop-vpos-test.ccvlab.eu/bep/authenticate.html?secureTransferId=1d584a8f-58fc-4704-a92d-9955e678b932&trm=51",
"authorisedAmount": 9.99,
"acquirer": "Valitor",
"cardholderLastName": "Doe",
"authenticationProtocol": "3DS2",
"authenticationStatus": "Y",
"acquirerResponseCodeDescription": "ApprovedOrCompletedSuccessfully"
},
"payUrl": "https://onlinepayments.ccv.eu/card/payment.html?reference=C240305064258677CB87E192.G",
"amount": 9.99,
"description": "Order 123456",
"status": "success",
"reference": "C240305064258677CB87E192.G",
"merchantOrderReference": "123456",
"method": "card",
"type": "sale",
"language": "eng",
"currency": "eur",
"returnUrl": "https://shop/return?order=123456"
}
As a side effect of completing the payment (successfully or not), we will notify you using the webhook provided in step 1.