Get Transaction

getTransaction: SOAP request example

Security details described under security headers

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soap.api.controller.web.payjar.com/"
    xmlns:ns2="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <SOAP-ENV:Header>
    <wsse:Security SOAP-ENV:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
        <wsse:UsernameToken wsu:Id="UsernameToken-9" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <wsse:Username>~~~SOAP Username goes here~~~</wsse:Username>
        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">~~~SOAP Password goes
            here~~~</wsse:Password>
        </wsse:UsernameToken>
    </wsse:Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <ns1:getTransaction>
        <Api>ONE_ZERO</Api>
        <Safekey>~~~SAFEKEY goes here ~~~</Safekey>
        <AdditionalInformation>
        <payUReference>~~~PayU ref goes here ~~~</payUReference>
        </AdditionalInformation>
    </ns1:getTransaction>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

getTransaction: SOAP response example

Sample below provides Secure 3D values. Should the getTransaction call not return this please contact PayU support to activate extended Secure 3D responses.

Transaction State

Please note that when interpreting the Get Transaction Result, the Transaction State would need to be checked before goods are dispatched.

Please see here for Transaction States.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body>
<ns2:getTransactionResponse xmlns:ns2="http://soap.api.controller.web.payjar.com/">
<return>
<basket>
<amountInCents>~~~Basket amount ~~~</amountInCents>
<currencyCode>~~~Basket currency ~~~</currencyCode>
<description>~~~Basket description ~~~</description>
</basket>
<customFields>
<key>Secure3D</key>
<value>{"lkpTransactionId":"~~~lkpTransactionId ~~~","lkpErrorNo":"~~~lkpErrorNo ~~~","lkpErrorDescription":"~~~lkpErrorDescription ~~~","lkpEnrolled":"~~~lkpEnrolled ~~~","lkpEciFlag":"~~~lkpEciFlag ~~~","authSend":"~~~authSend ~~~","authErrorNo":"~~~authErrorNo ~~~","authErrorDescription":"~~~ authErrorDescription ~~~","authCavv":"~~~authCavv ~~~","authXid":"~~~authXid ~~~","authEciFlag":"~~~authEciFlag ~~~","authPAResStatus":"~~~authPAResStatus ~~~"}</value>
</customFields>
<displayMessage>~~~displayMessage ~~~</displayMessage>
<merchantReference>~~~merchantReference ~~~</merchantReference>
<payUReference>~~~payUReference ~~~</payUReference>
<paymentMethodsUsed xsi:type="ns2:~~~paymentMethodsUsed (Creditcard) ~~~" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<amountInCents>~~~amountInCents ~~~</amountInCents>
<cardExpiry>~~~cardExpiry ~~~</cardExpiry>
<cardNumber>~~~cardNumber ~~~</cardNumber>
<gatewayReference>~~~gatewayReference ~~~</gatewayReference>
<information>~~~information ~~~</information>
<nameOnCard>~~~nameOnCard ~~~</nameOnCard>
</paymentMethodsUsed>
<resultCode>~~~resultCode ~~~</resultCode>
<resultMessage>~~~resultMessage ~~~</resultMessage>
<successful>~~~successful (NB see Response parameters above!) ~~~</successful>
<transactionState>~~~transactionState ~~~</transactionState>
<transactionType>~~~transactionType ~~~</transactionType>
</return>
</ns2:getTransactionResponse>
</soap:Body>
</soap:Envelope>