3D Secure
Introduction#
This document provides integration and usage instructions for using the LPS 3D SECURE integration specification using an asynchronous connectivity model. Integrating with LPS 3D SECURE integration specification will enable participation in payment authentication initiatives such as Verified by Visa (Visa 3D-Secure), Master Card Secure Code and JCB J/Secure. This document assumes you have familiarity with your website and payment processing procedures as well as a proficiency using the technologies and programming languages that your website implements.
The aim of the document is NOT to break any existing compatibility modes if the merchant has already integrated with LPS Payment Gateway. All the post data which if merchant has integrated with synchronous connection model has been retained and minimum customer redirection is proposed.
Since the purpose of 3D SECURE initiative is to reduce the chargebacks by customers authenticating with their issuing bank, which involves customers being navigated out of merchant’s websites, the status of the transaction will NOT be in real time but through separate connection between LPS gateway and merchant servers.
TRANSACTION FLOW DIAGRAM
Transactions are sent via a Synchronous HTTP POST; the response is received on the same TCP/IP connection. The transaction flow is depicted in the following diagram given below:
- CUSTOMER TO MERCHANTS WEBSITE
Customer submits payment request encrypted over SSL; - CUSTOMER TO MERCHANTS WEBSITE
Contains all the necessary card data and card holder details. This is sent over secure encrypted SSL; - LPS SERVER TO MERCHANTS SERVER
LPS gateway performs data, velocity, and fraud checks. If any fail, the transaction process is stopped, and a failure code is returned; - LPS SERVER TO BANK
The transaction is sent from the LPS gateway to the bank; - LPS TO MERCHANTS SERVER
LPS sends the bank response details to merchant server; - MERCHANT SERVER TO END USER
Merchant updates database and notifies customer of success or failure of the transaction; - LPS SERVER TO END USER
LPS can send an e-mail receipt to customers where the transaction is successful. Merchant can receive a copy of the e-mail for customer support or account management purposes; - 3D SECURE AUTHENTICATION
LPS payment gateway can also perform 3D secure authentication for participating cardholders against their issuing bank before authorizing the transactions. The 3D secure flow is depicted in section 3.
Image unavailable: lps3d.jpg
THE 3D SECURE TRANSACTION
Image unavailable: 3dsecure.jpg
A pictorial representation of different stages that are involved in a 3DSecure Transaction is given below: - At the point of checkout, the cardholder selects an appropriate payment method based on the initiatives supported by the Merchant. - Based on the payment information the Merchant passes a lookup message to LPS. This message contains all the required information provided by the cardholder to check the enrolment of the cardholder. - Based on the card number range (pulled from the Directory Server daily), a Verify Enrolment request message will be sent to the Enrolment Directory server. - The Enrolment Directory will send the a Verify Enrolment Request to the card holder issuing bank ACS Server where it will verify the enrolment status. - The Verify Enrolment Response is then passed back to the Directory Server with the corresponding ACS URL, if applicable. - The information is then passed back to LPS where it is verified, and the Payment Authentication Request is created. - The Lookup response is returned to the merchant with the Payer Authentication Request [PAReq]. - Based on the existence of the ACS URL in the Lookup response, the Merchant will redirect the card holder browser to the corresponding ACS Server. - The cardholder enters their authentication data and initiates the authentication process directly with the ACS Server. - The ACS, in conjunction with the Card Issuer, authenticates the cardholder. - The Payer Authentication Response [PARes] along with the customer is returned to the LPS gateway, via the web browser. - The Payer Authentication Response is then forwarded to the merchant. - The merchant initiates the authenticate message, which is sent to the LPS gateway for processing. - LPS 3D secure system validates the Payer Authentication Response, and along with the rest of the transaction information, sends out the authorization to the payment network.
LPS 3D SECURE INTEGRATION FLOW
NB. For questions or help at any stage of integration, please send an email to technical@lpsmail.com
1. OVERVIEW
The merchant’s server makes a request for authorisation passing all the mandatory fields and relevant optional fields through a synchronous secure HTTP POST as per table given in Schedule 2A. If the merchant has already integrated with LPS Payment Gateway, the post parameters remain the sameto maintain backward compatibility except for one additional optional parameter “3dSecureCheck”. By setting this parameter to “Y”, the merchant can force the transaction to be verified by 3d secure before authorisation. LPS Payment Gateway will check if the customer is enrolled for 3D SECURE verification. If the customer is enrolled, LPS Payment Gateway responds on the same synchronous connection the URL for customer’s issuing bank 3D SECURE verification URL along with 3D SECURE verification request. If the customer is NOT enrolled, LPS Payment Gateway proceeds with normal authorisation without 3D SECURE checks or rejects the transaction as per card scheme rules.
The rest of the document illustrates only in the case of if the customer is enrolled with their issuing bank for 3D SECURE checks. As explained above, if the customer is NOT enrolled the transaction will continue as normal synchronous authentication to the bank gateway and the AUTH response will be returned (if card scheme allows the normal authorisation).
NOTE:
The new parameter “3dSecureCheck” value will be overridden by any mandatory card scheme rules. Please consult with LPS for further information. Also, the default value for this new parameter is “N” implying that if the parameter is not sent, the transaction will be directly sent for authorisation provided there is no restriction by the card schemes.
2. REDIRECTING CUSTOMER IF ENROLLED
If the customer is enrolled for 3D SECURE checks, then LPS Payment Gateway will return the information as per table given in Schedule 2C. The merchant will be required to handle the response, check the presence of URL, and then redirect the customer to the URL returned along with Payment Authentication Request (PAReq) returned. When merchant redirects the customer to their issuing bank 3D SECURE page they will also be required to attach the “TARGET” page to which the customers will be redirected after successful 3D SECURE authentication with their issuing bank as a hidden field parameter. The merchant should also attach as hidden field parameters their system reference number and LPS Transaction Id for retrieval of the transaction at LPS Payment Gateway after 3D SECURE authentication.
If the customer is enrolled for 3D SECURE checks, then LPS Payment Gateway will return the information as per table given in Schedule 2C. The merchant will be required to handle the response,check the presence of URL, and then redirect the customer to the URL returned along with Payment Authentication Request (PAReq) returned. When merchant redirects the customer to their issuing bank 3D SECURE page they will also be required to attach the “TARGET” page to which the customers will be redirected after successful 3D SECURE authentication with their issuing bank as a hidden field parameter. The merchant should also attach as hidden field parameters their system reference number and LPS Transaction Id for retrieval of the transaction at LPS Payment Gateway after 3D SECURE authentication.
2.1 “BackToMerchantURL” Identifier
The table 2D in post fields section explains the parameters to be sent as part of redirecting the customer to their issuing bank 3dsecure page for authentication.
This contains a field called “BackToMerchantURL” which should be a numeric value as issued by Latpay. Merchants can provide any number of return URL’s to which they’d like to get customers landing back after completing the 3dsecure authentication. Each URL will be whitelisted by Latpay and a unique identifier issued which can then be used in the construction of MD parameter
2.2 LPS OPTIONAL REDIRECTION
LPS as an optional feature can also provide the redirection so that the customer is navigated to the 3D SECURE URL. To use this feature, the merchants should post back response received in schedule 2C as per schedule 2D(o) to the URL specified by LPS. This post must be from the browser and LPS will navigate the customer to their issuing bank 3D SECURE page. IN THIS SCHENARIO, SCHEDULE 2D(o) WILL REPLACE SCHEDULE 2D.
3. 3D SECURE AUTHENTICATION RESPONSE
When the customer is redirected to a URL on LPS Gateway after 3D SECURE authentication, it will match the transaction Id passed with the existing pending transaction. The status of the transaction will be updated to “3D SECURE Response Returned” and the 3D SECURE response will then be transferred back to a merchant’s URL which will return the customer back to the merchant site along with the details given in Table 2E.
The merchant should extract the 3D SECURE response and update the status of the transaction as 3D SECURE Response received. Note at this stage neither LPS nor the merchant know if the 3D SECURE authentication is successful. They will then open synchronous connection back to LPS payment gateway with the transaction details as shown in Table 2F.
4. ACQUIRER AUTHENTICATION
LPS Payment gateway on receiving the payment request as per table 2F will send the 3D SECURE authentication response back to the 3D SECURE provider to validate if the 3D SECURE authentication was successful. If successful, then it will be passed to the acquirer along with 3D SECURE authentication response. After the transaction is authorized / rejected, the response will be sent back to the merchant on the same synchronous connection along with the details specified in Table 2B with ResponseType = 1. If the 3D SECURE authentication has failed, LPS will return the transaction back to the Merchant as 3D SECURE failed transaction with the details specified in Table 2B with ResponseType = 0.
Request Fields#
Schedule 2A – LPS POST Specification for Payment Request using CARD#
| Field | Description | Mandatory | Data Type | Length |
|---|---|---|---|---|
| merchant_User_Id# | Merchant’s user id provided by LPS | Required | varchar | 50 |
| merchantpwd# | Merchant’s PWD provided by LPS | Required | varchar | 50 |
| merchant_ipaddress# | Static IP address of the Merchant server | Required, As provided by merchant | ||
| customer_firstname# | First name of the customer | Required | varchar | 50 |
| customer_lastname# | Last name of the customer | Required | varchar | 50 |
| customer_phone# | Telephone number of the customer | Required | varchar | 50 |
| customer_email# | Email address of the customer | Required | varchar | 50 |
| customer_ipaddress# | IP address of the customer | Required | varchar | 50 |
| bill_firstname# | First name of the card holder | Required | varchar | 50 |
| bill_lastname# | Last name of the card holder | Required | varchar | 50 |
| bill_address1# | First line of street address for billing the CC | Required | varchar | 100 |
| bill_address2# | Second line of street address for billing the CC | Optional | varchar | 100 |
| bill_city# | City for the billing the credit card | Required | varchar | 50 |
| bill_country# | Country for the billing the credit card | Required | See LPS Standard Codes | |
| bill_state# | State for the billing the credit card | Optional | See LPS Standard Codes | |
| bill_zip# | Postal code for the billing the credit card | Required | varchar | 50 |
| dateregistered# | Date customer setup an account with your site | Optional | varchar | 50 |
| customer_cc_expmo# | Expiration month(mm) of the credit card | Required | varchar | 50 |
| customer_cc_expyr# | Expiration year(yyyy) of the credit card | Required | varchar | 50 |
| customer_cc_number# | Credit card/Debit card number of the customer | Required | numeric | 50 |
| customer_dc_issue# | Debit card issue number | Required (for debit cards only) | numeric | 2 |
| customer_dc_startmo# | Debit card start month or valid from month (mm) | Required (for debit cards only) | varchar | 50 |
| customer_dc_startyr# | Debit card start year or valid from year (yyyy) | Required (for debit cards only) | varchar | 50 |
| customer_cc_type# | Credit Card type of the customer either VISA, MAST, SWITCH, SOLO, DELTA, AMEX, MAESTRO (Case Sensitive, upper case only) | Required | varchar | 10 |
| customer_cc_cvc# | CVC number of the bank of customer card | Required | numeric | 3 |
| customer_bank_name# | Name of issuing bank of customer card | Optional | ||
| ship_to_address1# | First line of the street address to ship the product | Optional | varchar | 50 |
| ship_to_address2# | Second line of the street address to ship the product | Optional | varchar | 50 |
| ship_to_city# | City to which the ship the product | Optional | varchar | 50 |
| ship_to_country# | Country to which the ship the product | Optional | varchar | 50 |
| ship_to_phone# | Telephone number of shipping destination | Optional | varchar | 50 |
| ship_to_state# | State or province to which the ship the product | Optional | varchar | 50 |
| ship_to_zip# | Postal code to which the ship the product | Optional | varchar | 50 |
| ship_to_method# | Shipping method | Optional | varchar | 50 |
| merchant_ref_number# | Merchant generated reference number | Required | varchar | 50 |
| currencydesc=”XXX”# | XXX is the currency code you are transacting in i.e., USD, GBP, EUR | Required | See LPS Standard Codes | |
| amount# | Purchase Amount – 2 decimal places only | Required | 2 decimal places | |
| fees# | Merchant processing fee | Optional | 2 decimal places | |
| 3dSecureCheck# | Flag to indicate whether 3d secure code check to be performed. Valid values Y, N. Default: N | Optional | varchar | 1 |
| scsscheck# | Flag to indicate if SCSS is required. Values: Y, N, D. Y: Yes; N: No; [default if not sent] D: Done, token posted with the request | Conditional*** (Only if SCSS options are required). ***If set to Y or N, then CrdStrg_Token field will be ignored even if sent | varchar | 1 |
Request Fields Using Token#
Schedule 2A(T) – LPS POST Specification for Payment Request using CARD TOKEN#
| Field | Description | Mandatory | Data Type | Len |
|---|---|---|---|---|
| merchant_User_Id# | Merchant’s user id provided by LPS | Required | varchar | 50 |
| merchantpwd# | Merchant’s PWD provided by LPS | Required | varchar | 50 |
| merchant_ipaddress# | Static IP address of the Merchant server | Required, As provided by merchant | ||
| customer_firstname# | First name of the customer | Required | varchar | 50 |
| customer_lastname# | Last name of the customer | Required | varchar | 50 |
| customer_phone# | Telephone number of the customer | Required | varchar | 50 |
| customer_email# | Email address of the customer | Required | varchar | 50 |
| customer_ipaddress# | IP address of the customer | Required | varchar | 50 |
| bill_firstname# | First name of the card holder | Optional | varchar | 50 |
| bill_lastname# | Last name of the card holder | Optional | varchar | 50 |
| bill_address1# | First line of street address for billing the CC | Optional | varchar | 100 |
| bill_address2# | Second line of street address for billing the CC | Optional | varchar | 100 |
| bill_city City# | for the billing the credit card | Optional | varchar | 50 |
| bill_country# | Country for the billing the credit card | Optional | See LPS Standard Codes | |
| bill_state# | State for the billing the credit card | Optional | See LPS Standard Codes | |
| bill_zip# | Postal code for the billing the credit card | Optional | varchar | 50 |
| dateregistered# | Date customer setup an account with your site | Optional | varchar | 50 |
| CrdStrg_Token# | Unique card details identifier from LPS SCSS system | Required | varchar | 100 |
| customer_cc_cvc# | Card security code / CVN / CVV2 | Required | numeric | 3 |
| ship_to_address1# | Shipping address line 1 | Optional | varchar | 50 |
| ship_to_address2# | Shipping address line 2 | Optional | varchar | 50 |
| ship_to_city# | Shipping address city | Optional | varchar | 50 |
| ship_to_country# | Shipping address country | Optional | varchar | 50 |
| ship_to_phone# | Telephone number of shipping destination | Optional | varchar | 50 |
| ship_to_state# | State or province to which the ship the product | Optional | varchar | 50 |
| ship_to_zip# | Postal code to which the ship the product | Optional | varchar | 50 |
| ship_to_method# | Shipping method | Optional | varchar | 50 |
| merchant_ref_number# | Merchant generated reference number | Required | varchar | 50 |
| currencydesc# | Transaction currency in ISO 3-digit format. For e.g. USD, GBP, EUR | Required | See LPS Standard Codes | |
| amount# | Purchase Amount – 2 decimal places only | Required | 2 decimal places | |
| fees# | Merchant processing fee | Optional | 2 decimal places | |
| scsscheck# | Flag to indicate SCSS. Values: D D: Done, token posted with the request. For token processing, set it to D | Required | varchar | 1 |
| 3dSecureCheck# | Flag to indicate whether 3d secure code check to be performed. Valid values Y, N. Default: N | Optional | varchar | 1 |
POSTMerchant Authentication Request#
Schedule 2F – Merchant Authentication Request with 3D SECURE Authentication Response#
After receiving the 3D SECURE response and customer back to their web site, the merchant should open a synchronous connection back to LPS payment gateway with the following details which include the 3D SECURE response
All the above fields are mandatory. After authentication the details specified in Table 2B will be returned with a ResponseType of 0 or 1.
Additional Post Response Fields#
APPENDIX B: Additional Post Response Fields#
Depending on the merchant's account setup status, LPS enterprise payment gateway can respond additional fields in addition to the fields specified in the "schedule 2B" which is the response to confirm the results of the transaction. These fields will NOT be enabled by default and cannot be guaranteed to be returned even if enabled. Depending on the outcome of the transaction and on the gateway on which the merchant is setup, these fields can be returned. LPS will continue to add these additional response fields as required in future releases/upgrades of the gateway. If merchants wish to get these fields returned, they would need to contact LPS to get their accounts configured.
| Field | Description | Data Type | Length |
|---|---|---|---|
| AVS_Result# | Customer address verification result for the address line1 value posted by merchant Values: Empty or 2: Not verified / Not checked; 1: Failed; 0: Successful | Int | 4 |
| ZIP_Result# | Customer Zip code verification result for the bill_zip value posted by merchant Values: Empty or 2: Not verified / Not checked; 1: Failed; 0: Successful. | Int | 4 |
| CVN_Result# | Result of CVC entered by customer Values: Empty or 2: Not verified / Not checked; 1: Failed; 0: Successful | Int | 4 |
| CardBin# | First 6 digit of customer card | Int | 6 |
| CardLast4# | Last 4 digit of customer card | Int | 4 |
| CardType# | Card Scheme of customer card | String | 10 |
| CardIssuingCountry# | Country code of the Card Issuing country | String | 2 |
| CardIssuer# | Card Issuer name | String | 100 |
| BankIdentifier# | Identifier name of the bank which transaction processed | String | 10 |
| IsEnrolled# | Flag indicating either cardholder or the issuer participating in 3d secure program. Possible values: Y: Card enrolled N: Card not enrolled Empty or U: Unable to verify | varchar | 1 |
| ECI# | Electronic commerce indicator as returned by card schemes | varchar | 2 |
| bank_code# | Common LPS unique bank code indicating reason for transaction decline | String | 10 |
| bank_message# | bank code description | String | 100 |