Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Code Block
languagexml
titleHTML3D Secure doTransaction 'card enrolled' response exampleRESPONSE - Credit Card: PAYMENT or RESERVE (with 3D Secure enabled - card enrolled)
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <ns2:doTransactionResponse xmlns:ns2="http://soap.api.controller.web.payjar.com/">
        <return>
            <displayMessage>Transaction Pending 3DS Completion</displayMessage>
            <fraud>
                <resultCode>V030</resultCode>
                <resultMessage>Success</resultMessage>
            </fraud>
            <merchantReference>0123456789</merchantReference>
            <payUReference>31982857915</payUReference>
            <paymentMethodsUsed xsi:type="ns2:creditCard" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <amountInCents>350</amountInCents>
                <cardExpiry>092014</cardExpiry>
                <cardNumber>456546******6016</cardNumber>
                <gatewayReference>37117846</gatewayReference>
                <information>VISA</information>
                <nameOnCard>Jon Doe </nameOnCard>
            </paymentMethodsUsed>
            <resultCode>P3DS</resultCode>
            <resultMessage>Transaction Pending 3DS Completion</resultMessage>
            <secure3D>
                <secure3DId>A5ufG1Q3sp3qGDxu5de3</secure3DId>
                <secure3DUrl><![CDATA[<form name="downloadForm" action="http://acstest.bankserv.co.za/V3DSStart?osb=visa-3&VAA=B"
                method="POST">
                <table name="dataTable" border="0" cellpadding="0">
                <INPUT TYPE="hidden" NAME="TransactionID" value="A5ufG1Q3sp3qGDxu5de3">
                <INPUT TYPE="hidden" NAME="PaReq"
                value="eNpVUtty2jAQfddXeNLHzliWbWzCLJohgZSkTbik0yZ9E2IpLmCD5Av46ys5dtK+nbO7Wp2zu/B9qxDHzygLhRweUWvxG51kPbyanrP463K3Ci7ZTL
                zOskX5ebp5qR/Efje84jAfLfHEoUSlkyzlzPVcH2hHiWml5FakOQchTzf3TzzqhYHPgLaUwAHV/ZgzPwh7UdwH+sYJpOKA/EakO42qHG1UIoXTdQPaZAnIrEh
                zdeEx84B2hECh9nyb58cBpVVVuau2iysztxZAbZoA/dA2LyzSxvo5WfM48Ov56+IJy9XPu/GPSzkZf9Gnl9vq2+MQqK0gsBY5ct9jgdf3fIdFg9AbMGOriRMQ
                B6uFLwO3Z4S1jMDR/jN6Y4HN/BswbgqlMJWdnY4RwPMxS9HUmNm+YyMCteSZWqNyPjlBzFjcDyOjwYYJJKnOxX5v33TQmP6weju1S5G5mfadCPWsno
                pZdP0QqF/qz3GyQb+q88XEbqqpaVQkZrws9K4bGUkza2r70PYOaHs6Bv13Un8BvvXHsA==">
                <INPUT TYPE="hidden" NAME="TermUrl" VALUE="http://staging.safeshop.co.za/s2s/Secure3D/Encode_Finish.asp">
                <INPUT TYPE="hidden" NAME="MD" VALUE="37117846">
                </table>
                <center><p><font type="Arial" size=2>Transfering to your bank for credit card authentication.
                <p> If you are not redirected please <a href="javascript:AutoSubmitForm()">click here</a> on the image to continue to access your banking
                institution.<p>
                <input type="image" src="http://staging.images.safeshop.co.za/PaymentMethods/Secure3D/VbyV_blue_120x69.gif" name="continue"
                value="Continue"></center>
                </form>
                <script language="Javascript">
                <!--
                function AutoSubmitForm() {document.downloadForm.submit();
                }
                AutoSubmitForm();
                //--></script>]]></secure3DUrl>
                </secure3D>
            <successful>true</successful>
        </return>
    </ns2:doTransactionResponse>
    </soap:Body>
</soap:Envelope>

...

Code Block
languagexml
titleREQUEST - Credit Card with Token (Save Card) - subsequent request
linenumberstrue
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns2:doTransactionResponse xmlns:ns2="http://soap.api.controller.web.payjar.com/">
         <return>
            <resultCode>00</resultCode>
            <resultMessage>Successful</resultMessage>
            <successful>true</successful>
            <displayMessage>Successful</displayMessage>
            <merchantReference>1234567890</merchantReference>
            <payUReference>21976214819</payUReference>
            <paymentMethodsUsed xsi:type="ns2:creditCard" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
               <amountInCents>1000</amountInCents>
               <cardExpiry>122015</cardExpiry>
               <cardNumber>400000******1000</cardNumber>
               <gatewayReference>37149772</gatewayReference>
               <information>VISA</information>
               <nameOnCard>John Doe</nameOnCard>
            </paymentMethodsUsed> 
            <customFields>
               <key>bankReference</key>
               <value>DEMO12</value>
            </customFields>
         </return>
      </ns2:doTransactionResponse>
   </soap:Body>
</soap:Envelope>

 

 

...

languagexml
titleHTML3D Secure doTransaction 'card enrolled' response example

...