Retrieving the ACS response

Retrieving the ACS response

To retrieve the ACS response, it is necessary to set up a return URL for the ACS.

It will allow to return the data from the PaRes to the merchant website.

The parameters returned by the ACS are:

  • PaRes : contains the PaRes message(Payer Authentication Response).
  • MD : contains the session id situated in the header of the response and the query id (threeDSRequestId) included in the authenticationRequestData response.

    These two values must be extracted to be used when calling the createPayment operation if the value of the mode attribute within the threeDSRequest object is set to ENABLED_FINALIZE.

Example:
PaRes:eJzNWVmPo0i2frfk/1CqeXRXsZjFtJw5YjVgg81mlpcrdjCrzWr/+gln1pLdqjvqOz0PN6UUcIg4ceIs33cCb/
85V+WnMb51eVO/fEa+wp8/xXXYRHmdvny2TOHL5vM/X7dmdotjzojD4Ra/bpW46/w0/pRHL5//hyBQHEsI/
EuyJsMvGBmvv1BUsPlCUlQUUFiAoQH5+XV7ovW4e5vR5WkdR1//6sRvtr0C076iW+j7IzDiFmZ+3b9u/
[...]
MD:pcpSryKqB0NynWVHj8LQj0uz+_66254f65-f37c-47e3-99b8-799db94b42b7

In this example, the MD field consists of the session id and the query id, separated by a "+":
JSESSIONID: pcpSryKqB0NynWVHj8LQj0uz
requestId:_66254f65-f37c-47e3-99b8-799db94b42b7