Initializing a payment with 3D Secure
Initializing a payment with 3D Secure
The example below allows to initialize a payment (createPayment) with 3D Secure authentication.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:v5="http://v5.ws.vads.lyra.com/">
<soap:Header xmlns:soapHeader="http://v5.ws.vads.lyra.com/Header">
<soapHeader:shopId>12345678</soapHeader:shopId>
<soapHeader:requestId>09016abd-2869-40cc-b32f-a467bd541e42</soapHeader:requestId>
<soapHeader:timestamp>2015-04-01T12:09:44Z</soapHeader:timestamp>
<soapHeader:mode>TEST</soapHeader:mode>
<soapHeader:authToken>ASQu/agMyf5UDEkd2HZbBZAKkIjrAMoJV98ZN2W9o/g=</soapHeader:authToken>
</soap:Header>
<soap:Body>
<v5:createPayment>
<commonRequest>
<paymentSource>EC</paymentSource>
<submissionDate>2015-04-01T12:09:44Z</submissionDate>
</commonRequest>
<threeDSRequest>
<mode>ENABLED_CREATE</mode>
</threeDSRequest>
<paymentRequest>
<amount>1</amount>
<currency>356</currency>
<manualValidation>1</manualValidation>
</paymentRequest>
<orderRequest>
<orderId>TEST-01</orderId>
</orderRequest>
<cardRequest>
<number>4970100000000009</number>
<scheme>VISA</scheme>
<expiryMonth>12</expiryMonth>
<expiryYear>2015</expiryYear>
<cardSecurityCode>123</cardSecurityCode>
<cardHolderBirthDay>1976-04-18</cardHolderBirthDay>
</cardRequest>
</v5:createPayment>
</soap:Body>
</soap:Envelope>
When creating a payment with 3D Secure authentication, a threeDSResponse object is returned in the response.