Secure3DLookup Method
Description
The Secure3DLookup method allows merchants to authenticate cards through 3D Secure.
Action
http://www.ecentricswitch.co.za/paymentgateway/v1/Secure3DLookup
Style
Document
Input (Literal)
The input of this method is the document element Secure3DLookupRequest having the structure defined by the following table.
ELEMENT |
TYPE |
SIZE(MAX) |
DESCRIPTION |
MessageHeader Required |
|
|
|
MessageDateTime |
datetime |
The message timestamp. |
|
MessageID |
string |
50 |
A unique identifier to identify the message. |
Channel |
string |
50 |
An identifier to identify the source of the message. |
Secure3DLookup Required |
|
|
|
MerchantID |
string |
50 |
A unique identifier to identify the merchant. Also known as Merchant GUID. |
TransactionID |
string |
50 |
A unique identifier provided by the merchant on the API call to identify the transaction. |
TransactionDateTime |
datetime |
The transaction timestamp. |
|
SaleReconID |
string |
100 |
A unique sale identifier for reconciliation purposes. |
ReconID |
string |
50 |
A unique identifier for reconciliation purposes, this is posted as the MD (Merchant Data) value by the ACS as part of the form post data to the TermUrl. |
Amount |
long |
The authorization or payment amount in the lowest monetary unit. |
|
CurrencyCode |
string |
3 |
The currency code according to the ISO 4217 standard. |
OrderNumber |
string |
50 |
The transaction order or reference number. Only 0-9, A-Z or a-z allowed. Spaces are not allowed. |
Card |
The card details. |
||
PaymentService |
The target payment service. |
||
TermUrl |
string |
1024 |
After completing 3D Secure verification on the card issuer site, the shopper is redirected back to the merchant site. This URL value specifies which merchant page the shopper is returned to. |
VerificationAction |
The VerificationAction to be applied to the card. If left blank when the PaymentService is CardVerification, it will default to NonPaymentAuthentication. The amount used will be R0 (Zero Rand). |
||
BrowserIP |
string |
45 |
MANDATORY (Browser) |
ScreenHeight |
string |
6 |
MANDATORY (Browser) |
ScreenWidth |
string |
6 |
MANDATORY (Browser) |
Output (Literal)
The output of this method is the document element Secure3DLookupResponse having the structure defined by the following table.
ELEMENT |
TYPE |
SIZE(MAX) |
DESCRIPTION |
MessageHeader |
|
|
|
MessageDateTime |
datetime |
The message timestamp. |
|
MessageID |
string |
50 |
A unique identifier to identify the message. |
Channel |
string |
50 |
An identifier to identify the source of the message. |
Secure3DLookupResponse |
|
|
|
TransactionID |
string |
50 |
A unique identifier to identify the transaction. |
TransactionDateTime |
datetime |
The transaction timestamp. |
|
SaleReconID |
string |
100 |
A unique sale identifier for reconciliation purposes. |
ReconID |
string |
50 |
A unique identifier for reconciliation purposes, this is posted as the MD (Merchant Data) value by the ACS as part of the form post data to the TermUrl. |
TransactionStatus |
TransactionStatusType |
The transaction status (Success and Failure) |
|
ResponseDetail |
The transaction result code. |
||
Enrolled |
boolean |
Indicates whether the cardholder is enrolled for 3D Secure. |
|
AcsUrl |
string |
The fully qualified Issuer ACS URL. This is used by the merchant to redirect the cardholder. Returned if the cardholder is enrolled. |
|
PAReqPayload |
string |
The encoded PAReq generated by MAPS. Returned if the cardholder is enrolled. |
Sample Message
Request (Customer Browser Application)
Body
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:="http://www.ecentricswitch.co.za/paymentgateway/v1">
<soapenv:Header>
<MessageHeader></MessageHeader>
</soapenv:Header>
<soapenv:Body>
<Secure3DLookupRequest
xmlns="http://www.ecentricswitch.co.za/paymentgateway/v1">
<MerchantID>8B67BF88-BB8D-4EB5-ADFC-0F5C97C7ED67</MerchantID>
<MerchantUserID>978e566b-d62a-42c0-9843-381b3588f333</MerchantUserID>
<TransactionID>0f750d6e-5336-4da1-9cd5-1896797f5f54</TransactionID>
<Amount>50</Amount>
<CurrencyCode>ZAR</CurrencyCode>
<OrderNumber>MR64503998</OrderNumber>
<Card>
<Token>BF392BCE-6DE4-4134-85D1-EA02F7EB633C</Token>
<SecurityCode>360</SecurityCode>
</Card>
<PaymentService>CardNotPresent</PaymentService>
<TermUrl>http://localhost:3000/term-url</TermUrl>
</Secure3DLookupRequest>
</soapenv:Body>
</soapenv:Envelope>
Response
Body
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:MessageHeader
xmlns:h="http://www.ecentricswitch.co.za/paymentgateway/v1"
xmlns="http://www.ecentricswitch.co.za/paymentgateway/v1"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<MessageDateTime>2024-11-14T12:14:36.11</MessageDateTime>
<MessageID>54AEE2E4-E1C5-4747-AD0E-5A3418A04DA9</MessageID>
<Channel xsi:nil="true"/>
</h:MessageHeader>
</s:Header>
<s:Body
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Secure3DLookupResponse
xmlns="http://www.ecentricswitch.co.za/paymentgateway/v1">
<TransactionID>0f750d6e-5336-4da1-9cd5-1896797f5f54</TransactionID>
<TransactionDateTime>2024-11-14T12:14:34.657</TransactionDateTime>
<SaleReconID xsi:nil="true"/>
<ReconID>185D72D4-85E4-454A-80CC-DA6AE3051C76</ReconID>
<TransactionStatus>Success</TransactionStatus>
<ResponseDetail>
<Source>3DSecure</Source>
<Code>50</Code>
<Description>3DS Method</Description>
<ClientMessage>Success. Please provide TDSMethodContent</ClientMessage>
</ResponseDetail>
<Enrolled>true</Enrolled>
<AcsUrl>https://uat.ecentric.co.za/HPP/tds2/process</AcsUrl>
<PAReqPayload>eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eElkIjoiMTM4NDc1MTExIg0KCQkJCQksIm1lcmNoYW50R3VpZCI6IjhCNjdCRjg4LUJCOEQtNEVCNS1BREZDLTBGNUM5N0M3RUQ2NyINCgkJCQkJLCJ0cmFuc2FjdGlvbklEIjoiMGY3NTBkNmUtNTMzNi00ZGExLTljZDUtMTg5Njc5N2Y1ZjU0Ig0KCQkJCQksIm1kIjoiMTg1RDcyRDQtODVFNC00NTRBLTgwQ0MtREE2QUUzMDUxQzc2Ig0KCQkJCQksIm1kU3RhdHVzIjoiNTAiDQoJCQkJCSwidGRzTWV0aG9kQ29udGVudCI6IjxpZnJhbWUgaWQ9XCJ0ZHNNbWV0aG9kVGd0R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