1. Home
  2. 3D Secure Parse PaRes Request

3D Secure Parse PaRes Request

Field Type Max Length Requirement Description Version
transactionID N 20 M Reference transaction to S3Dcheck
PaRes S 8192 M Payer Authentication Response
Field Type Max Length Requirement Description Version
errorCode D 3 M See Messages and error codes
errorMessage S 100 M See Messages and error codes
ECI D 4 M Electronic Commerce Indicator
XID S 28 M Xid Transaction ID generated by the 3D Secure service that uniquely identifies a 3D Secure check request
CAVV S 40 M Cavv Cardholder Authentication Verification Value
CAVVAlgorithm S 32 O CAVVAlgorithm returned from 3D secure authentication

PHP Gateway Client

Transaction name : 3DSParse

PHP Methods

Method name Requirement
setPaRes M

PHP Example

<?php
$client = new GatewayClient();

$transaction = $client->newTransaction('3DSParse', 'testMerchant', 'testPassword');
$transaction->setTransactionID(9567856);
$transaction->setPaRes($PaRes);

$response = $transaction->send();

if ('000' === $response->errorCode) {
    $ECI  = $response->ECI;
    $XID  = $response->XID;
    $CAVV = $response->CAVV;
    $CAVVAlgorithm = $response->CAVVAlgorithm;

} else {
    echo "Error {$response->errorCode} with message {$response->errorMessage}";
}
?>

Java Gateway Client

Java Methods

Connector method doThreeDSParseTransaction
Request class ThreeDSParseRequest
Response class ThreeDSParseResponse

Java Examples

PaymentGatewayConnector connector = new PaymentGatewayConnector(API_URL, ORIGINATOR, PASSWORD);

ThreeDSParseResponse response = null;
ThreeDSParseRequest request = new ThreeDSParseRequest();

request.setTransactionId(9567856L).setPaRes("XXXXXX...");

try {
  response = connector.doThreeDSParseTransaction(request);
} catch (Exception e) {
  e.printStackTrace();
}

if (response != null) {
  if (TransactionResultCode.TRANSACTION_SUCCESSFULLY.equals(response.getErrorCode()) {
    System.out.println("Success: " + response.getErrorMessage());
  } else {
    System.out.println("Failure: " + response.getErrorMessage());
  }
}

Was this article helpful?