On this page:
- Overview
- New fields
- Field validation
- EMV 3DS
- Apply3DSecure field
- Credential on File
- Response Crypt String
Overview
Protocol 2.23 was deprecated in 2012. Industry changes, notably the introduction of SCA and the neccesity to submit Credential on File information means that you will need to upgrade your integration to our latest protocol version (4.00)
We have prepared this guide to help you migrate, but if you have any questions, you can contact support@opayo.io
The good news is that at it's most basic level, all you need to do is change the VPSProtocol value from 2.23 to 4.00 and check that your systems can handle extra response fields. It becomes slightly more complicated if you wish to use SCA Exemptions (not recommended) or use Credential on File functionality - neccesary if you wish to use REPEAT functionality going forward.
This upgrade will also allow you to access the features that we are planning to introduce throughout 2021.
New fields
The following optional fields were added to protcol 3.00 and support for these has been carried through to protcol 4.00:
Name |
Description |
Mandatory |
Valid Characters |
Max Length |
Allowed Values |
---|---|---|---|---|---|
A more flexible version of the current basket field which can be used instead of the basket field. If this field is supplied then the Basket field should not be supplied. |
No |
|
20000 |
|
|
This can be used to supply information on the customer for purposes such as fraud screening. |
No |
|
2000 |
|
|
VendorData |
Use this field to pass any data you wish to be displayed against the transaction in MyOpayo. |
No |
Letters, digits, and spaces
|
200 |
|
ReferrerID |
This can be used to send the unique reference for the Partner that referred the Vendor to Opayo. |
No |
Letters including accents, digits, ampersand, commas, apostrophes, forward and back slashes, hyphens, periods, spaces, colons, parentheses, plus, and carriage returns or line feed
|
40 |
|
Language |
The language the customer sees the payment pages in is determined by the code sent here. If this is not supplied, then the language default of the shopper’s browser will be used. If the language is not supported, then the language supported in the templates will be used. Supported languages in the Default templates are:
|
No |
ISO3166 |
2 |
Examples:
|
Website |
Reference to the website this transaction came from. This field is useful if transactions can originate from more than one website. Supplying this information will enable reporting to be performed by website. |
No |
Letters including accents, digits, ampersand, commas, apostrophes, forward and back slashes, hyphens, periods, spaces, colons, parentheses, plus, and carriage returns or line feed
|
100 |
|
FIRecipientAcctNumber |
This should either be the first 6 and the last four characters of the primary recipient PAN (no spaces). Where the primary recipient account is not a card this will contain up to 10 characters of the account number (alphanumeric), unless the account number is less than 10 characters long in which case the account number will be present in its entirety. This field is only required for UK merchants who have a merchant category code of 6012 (Financial Institutions). |
No |
Letters and digits
|
10 |
|
FIRecipientSurname |
This is the surname of the primary recipient. No special characters such as apostrophes or hyphens are permitted. This field is only required for UK merchants who have a merchant category code of 6012 (Financial Institutions). |
No |
Letters and spaces
|
20 |
|
FIRecipientPostcode |
This is the postcode of the primary recipient. This field is only required for UK merchants who have a merchant category code of 6012 (Financial Institutions). |
No |
Letters, digits, and spaces
|
? |
|
FIRecipientDoB |
This is the date of birth of the primary recipient in the format YYYYMMDD. This field is only required for UK merchants who have a merchant category code of 6012 (Financial Institutions). |
No |
Digits |
|
|
See the API Reference section for more information.
Field validation
To support EMV 3DS, the following changes have been made to the field validation:
- BillingAddress1 maximum length is now 50 characters.
- BillingAddress2 maximum length is now 50 characters.
- DeliveryAddress1 maximum length is now 50 characters.
- DeliveryAddress2 maximum length is now 50 characters.
- You can no longer submit multiple CustomerEMail email addresses (colon seperated) as part of protocol 4.00. The maximum length acceptable is now 80 characters.
You can now sumbit a 3rd address line:
- BillingAddress3, maximum length 50 characters.
- DeliveryAddress3, maximum length 50 characters.
See the API Reference section for more information.
EMV3DS
Once you have upgraded to protocol 4.00, you will be able to submit optional fields to the 3D Secure process. This includes SCA Exemption and account level information, that will help us ensure your transactions are as frictionless as possible. Simply add these fields to your Crypt string.
Name |
Description |
Mandatory |
Format |
Max Length |
Allowed Values |
---|---|---|---|---|---|
Information about how you authenticated the cardholder before or during the transaction. For example, did your customer log into their online account on your website, using two-factor authentication, or did they log in as a guest? |
No |
|
Object |
|
|
Information about how you authenticated the cardholder as part of a previous 3DS transaction. For example, were they authenticated via frictionless authentication or did a cardholder challenge occur? |
No |
|
Object |
|
|
Additional information about the cardholder’s account that has been provided by you. For example, how long has the cardholder had the account on your website? |
No |
|
Object |
|
|
AcctID |
The account ID, if applicable, of your customer’s account on your website. |
No |
Any |
64 |
|
Your assessment of the level of fraud risk for the specific authentication for both the cardholder and the authentication being conducted. For example, are you delivering goods to the cardholder’s billing address, is this a first-time order or reorder? |
No |
|
Object |
|
|
TransType |
Identifies the type of transaction being authenticated.
Values derived from the 8583 ISO Standard. Note: If you do not send TransType, the default value of 01 (Goods/Service Purchase) will be used. |
No |
Digits |
2 |
|
ThreeDSExemptionIndicator |
Required if Apply3DSecure=2
Learn more about SCA Exceptions. |
Conditional |
Digits 01 to 99 |
2 |
|
See our API reference section for more information.
Important: All of these fields are optional
Apply3DSecure field
The behaviour of this field has changed in Protocol 4.00. Specifically, if you are using Apply3DSecure=2 to suppress 3D secure checking, this will need to be accompanied by an SCA Exemption:
Name |
Description |
Mandatory |
Format |
Max Length |
Allowed Values |
---|---|---|---|---|---|
Apply3DSecure |
Set this flag to fine tune the 3D Secure checks and ruleset you have defined at a transaction level. This is useful when direct and trusted customer contact is established, and you want to override the default security check level.
|
No |
Digits |
Flag |
|
Credential On File
If you wish to store a card number for possible future use, you will need to upgrade to protocol 4.00 - if you do not, unfortunately you will find increasing numbers of transactions decline. This is due to the payment card industry tightening standards, and introducing new processing procedures.
Once you have upgraded to protocol 4.00, you will need to submit extra fields to Opayo, in order to let us know that you will be processing transactions from a stored card including any REPEAT transactions that you will take via MyOpayo or the Shared protocol.
The fields you will need to add to the Crypt string:
Name |
Description |
Mandatory |
Format |
Max Length |
Allowed Values |
---|---|---|---|---|---|
COFUsage |
|
Conditional. (Required if you will be REPEATing transactions) |
Uppercase letters |
10 |
Will always be FIRST |
InitiatedType |
|
Conditional. (Required if COFUsage value is present). |
Uppercase letters |
3 |
Will always be CIT |
MITType |
This field is optional. If you know what kind of transactions you will be doing in the future, you can provide this information.
|
Optional
|
Uppercase letters |
15 |
|
RecurringExpiry |
Required if MITType=RECURRING or MITType=INSTALMENT. |
Conditional |
Digits and hyphens |
10 |
YYYY-MM-DD |
RecurringFrequency |
Required if MITType=RECURRING or MITType=INSTALMENT. The value is the number of days. For example, an annual frequency would be 365. |
Conditional |
Digits |
4 |
|
PurchaseInstalData |
Required if MITType=INSTALMENT. |
Conditional |
Digits |
3 |
|
See our API reference and/or Credential on File section for more information.
Response Crypt String
Please be aware that the following fields will addtionally be returned as part of the encrypted string. Make sure that these won't break your existing integration.
ACSTransID |
The Access Control Server (ACS) transaction ID is a unique ID provided by the card issuer for 3DSv2 authentications. It is returned in future transaction requests that perform 3D-Secure authentication. It encourages a frictionless authentication, especially if a challenge authentication has occurred previously. This value is returned to Opayo when you submit your Direct payment request using the threeDSReqPriorRef element found within the ThreeDSRequestorPriorAuthenticationInfoXML object. |
|
|
36 |
|
DSTransID |
The Directory Server (DS) transaction ID is a unique ID provided by the card scheme for 3DSv2 authentications. |
|
|
36 |
|
SchemeTraceID |
This is the unique reference number associated with an authorisation request. Note: The SchemeTraceID will always be returned for a successful authorisation (where Status=OK). |
No |
ITU-T T.50 value codes. ASCII range in hexadecimal from 20 to 7E (from space to tilde ~) |
56 |
|