API integration
Direct integration
Direct integration will allow you to accept payments using your own payment page.
Interaction format:
Note: the use of direct integration when collecting card data on the merchant side requires PCI DSS certification. Alternatively, you can use our tokenization widget by implementing it on your site.
The use of direct integration with two-step payments involves the following peculiarities (in addition to those described for one-step payment):
- In a request to the Tranzzo API, the
methodparameter must contain theauthvalue.
The rest of the parameters are similar to those provided for one-step split payments.
Depending on what is used in the request: full card data or a token, you need to pass the following parameters:
- Using full card data:
cc_number,exp_month,exp_year,card_cvv - Using token:
cc_token - Using VTS / MDES tokens:
cc_number,exp_month,exp_year,cryptogram.
Additionally, the decrypted VTS/ MDES payment must also include specific parameters in the cryptogram:
| Parameter | Type | Required | Description |
|---|---|---|---|
type | String | ✅ | Network token type: vts (Visa Token Service) or mdes (Mastercard Digital Enablement Service) |
cryptogram | String | ✅ | Payment cryptogram in Base64 format. Issued by the tokenization network (Visa or Mastercard) and valid within a single transaction. |
eci | String | Electronic Commerce Indicator. An indicator of the transaction’s authentication level, passed together with the cryptogram. |
In addition to supporting payments with tokens received after card payments, we also support tokens generated during the first payment via Apple Pay or Google Pay™. These tokens should be passed in the cc_token parameter
For example:
"cc_token":"rcr:ODJkZjBhNmY2OTMyNDJlN2wjMjFjfTQzOXU3ZDFhYzI6cWJmWHFmMHlzM3hYaXJMWEZv" (token after an Apple Pay or Google Pay™ payment)
or
"cc_token": "ODJkZjBhNmY2OTMyND7sSjdD0S8TQzOXU3ZDFhYzI6cWJmWHFmMHlz M3hYaXJMWEZv" (token after a card payment).
If a payment is made with a card for which 3D Secure authentication has already been completed by an external service, the request must include the three_d_secure parameter containing the authentication result:
| Parameter | Type | Required | Description |
|---|---|---|---|
cavv | String |