Click on any of the following links to view a sample of the respective data structureThe following are examples of how you would need to set out your data when querying PayU's API with SOAP.
- API requests:
- API response:
...
Top
...
...
...
Anchor |
---|
| example_without_fraud |
---|
| example_without_fraud |
---|
|
Top
Code Block |
---|
language | xml |
---|
title | REQUEST - Credit Card request: PAYMENT or RESERVE |
---|
linenumbers | true |
---|
|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.api.controller.web.payjar.com/" xmlns:SOAPENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="SOAP-ENV">
<soapenv: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>
</soapenv:Header>
<soapenv:Body>
<soap:doTransaction xmlns:ns2="http://soap.api.controller.web.payjar.com/">
<Api>ONE_ZERO</Api>
<Safekey>~~~SAFEKEY goes here ~~~</Safekey>
<TransactionType>~~~a value of PAYMENT or RESERVE~~~</TransactionType>
<AdditionalInformation>
<merchantReference>~~~Merchant ref goes here~~~</merchantReference>
<notificationUrl>http://example.com/notification-page/</notificationUrl>
</AdditionalInformation>
<Customer>
<countryCode>27</countryCode>
<countryOfResidence>ZAR</countryOfResidence>
<merchantUserId>0123465798</merchantUserId>
<email>john.doe@example.com</email>
<firstName>John</firstName>
<lastName>Doe</lastName>
<mobile>0827777777</mobile>
<regionalId>5612124567897</regionalId>
<ip>127.0.0.1</ip>
</Customer>
<Basket>
<amountInCents>12000</amountInCents>
<currencyCode>ZAR</currencyCode>
<description>Fraud Basket</description>
</Basket>
<Creditcard>
<amountInCents>12000</amountInCents>
<cardExpiry>122014</cardExpiry>
<cardNumber>4111120000005078</cardNumber>
<cvv>123</cvv>
<nameOnCard>Fred Fraud</nameOnCard>
</Creditcard>
</soap:doTransaction>
</soapenv:Body>
</soapenv:Envelope> |
Top
Code Block |
---|
language | xml |
---|
title | REQUEST - Credit Card: PAYMENT or RESERVE (with Fraud enabled) |
---|
linenumbers | true |
---|
|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.api.controller.web.payjar.com/" xmlns:SOAPENV="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv: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>
</soapenv:Header>
<soapenv:Body>
<soap:doTransaction xmlns:ns2="http://soap.api.controller.web.payjar.com/">
<Api>ONE_ZERO</Api>
<Safekey>~~~SAFEKEY goes here ~~~</Safekey>
<TransactionType>~~~a value of PAYMENT or RESERVE~~~</TransactionType>
<AdditionalInformation>
<deviceId>TERM003</deviceId>
<merchantReference>~~~Merchant ref goes here ~~~</merchantReference>
<notificationUrl> http://example.com/notification-page/</notificationUrl>
</AdditionalInformation>
<Customer>
<countryCode>27</countryCode>
<countryOfResidence>ZAR</countryOfResidence>
<merchantUserId>0123465798</merchantUserId>
<email>john.doe@example.com</email>
<firstName>John</firstName>
<lastName> Doe </lastName>
<mobile>0827777777</mobile>
<regionalId>5612124567897</regionalId>
<ip>127.0.0.1</ip>
</Customer>
<Basket>
<amountInCents>12000</amountInCents>
<currencyCode>ZAR</currencyCode>
<description>Fraud Basket</description>
<!--Zero or more repetitions:-->
<productLineItem>
<amount>10000</amount>
<costAmount>1000</costAmount>
<description>Product 1</description>
<giftMessage>Happy Birthday</giftMessage>
<productCode>ABC0002</productCode>
<quantity>1</quantity>
<recipientAddress1>21 Example Road</recipientAddress1>
<recipientCity>Cape Town</recipientCity>
<recipientCountryCode>ZAR</recipientCountryCode>
<recipientPostalCode>8000</recipientPostalCode>
<recipientFirstName>John</recipientFirstName>
<recipientLastName>Doe</recipientLastName>
</productLineItem>
<shippingDetails>
<shippingAddress1>21 Example Road</shippingAddress1>
<shippingAddressCity>Cape Town </shippingAddressCity>
<shippingEmail> john.doe@example.com </shippingEmail>
<shippingCountryCode>ZAR</shippingCountryCode>
<shippingStateCode>WC</shippingStateCode>
<shippingMethod>P</shippingMethod>
<shppingFirstName>John</shppingFirstName>
<shippingLastName>Doe</shippingLastName>
<shippingFax>27214688020</shippingFax>shippingFax>
<shippingPhone>27214688021</shippingPhone>
</shippingDetails>
</Basket>
<Fraud>
<checkFraudOverride>false</checkFraudOverride>
<merchantWebSite>http://www.example.com/ </merchantWebSite>
<pcFingerPrint>owhjiflkwhefqwoaef</pcFingerPrint>
</Fraud>
<Creditcard>
<amountInCents>12000</amountInCents>
<cardExpiry>122014</cardExpiry>
<cardNumber>4111120000005078</cardNumber>
<cvv>123</cvv>
<nameOnCard>Fred Fraud</nameOnCard>
<verified/>
</Creditcard>
</soap:doTransaction>
</soapenv:Body>
</soapenv:Envelope> |
Anchor |
---|
| with_handshake |
---|
| with_handshake |
---|
|
Top
Code Block |
---|
language | xml |
---|
title | REQUEST - Credit Card with Handshake |
---|
linenumbers | true |
---|
|
<DoTransaction Api=�1.0� Safekey=�{86903CCB-79A9-42EE-8637-1ACE90185507}� TransactionType=�PAYMENT� AuthenticationType=�HANDSHAKE�>
<AdditionalInformation>
<merchantReference>CJR001</merchantReference>
</AdditionalInformation>
<Customer>
<mobile>27827891249</mobile>
</Customer>
<Basket>
<amountInCents>1000</amountInCents>
<currencyCode>ZAR</currencyCode>
<description>ORD111</description>
</Basket>
<PaymentMethods>
<CreditCard pmID="jh23d29832jhdo23hu" CVV=�123� AmountInCents="2300" />
</PaymentMethods>
</DoTransaction> |
Top
Code Block |
---|
language | xml |
---|
title | REQUEST - eBucks (PAYMENT) |
---|
linenumbers | true |
---|
|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.api.controller.web.payjar.com/" xmlns:SOAPENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="SOAP-ENV">
<soapenv:Body>
<soap:doTransaction xmlns:ns2="http://soap.api.controller.web.payjar.com/">
<Api>ONE_ZERO</Api>
<Safekey>{00000000-0000-0000-0000-000000000000}</Safekey>
<TransactionType>PAYMENT/RESERVE</TransactionType>
<AdditionalInformation>
<merchantReference>1234567890</merchantReference>
</AdditionalInformation>
<Customer>
<countryCode>27</countryCode>
<countryOfResidence>ZAR</countryOfResidence>
<merchantUserId>0123465798</merchantUserId>
<email>john.doe@example.com</email>
<firstName>John</firstName>
<lastName>Doe</lastName>
<mobile>0827777777</mobile>
<regionalId>5612124567897</regionalId>
</Customer>
<Basket>
<amountInCents>12000</amountInCents> <!-- amount in zar cents -->
<currencyCode>ZAR</currencyCode>
</Basket>
<Ebucks>
<amountInCents>12000</amountInCents> <!-- amount in eBucks cents (EB * 10) -->
</Ebucks>
<Customfield>
<key>ebucksOtp</key>
<value>909059</value>
</Customfield>
<Customfield>
<key>ebucksAccountNumber</key>
<value>80000278865</value>
</Customfield>
</soap:doTransaction>
</soapenv:Body>
</soapenv:Envelope> |
Anchor |
---|
| request_credit |
---|
| request_credit |
---|
|
Top
Code Block |
---|
language | xml |
---|
title | REQUEST - Crediting a transaction |
---|
linenumbers | true |
---|
|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.api.controller.web.payjar.com/" xmlns:SOAPENV="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv: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>
</soapenv:Header>
<soapenv:Body>
<soap:doTransaction xmlns:ns2="http://soap.api.controller.web.payjar.com/">
<Api>ONE_ZERO</Api>
<Safekey>~~~SAFEKEY goes here ~~~</Safekey>
<TransactionType>CREDIT</TransactionType>
<AdditionalInformation>
<merchantReference>~~~Merchant ref goes here ~~~</merchantReference>
<payUReference>~~~PayU ref goes here ~~~</payUReference>
<wsse:UsernameToken wsu:Id="UsernameToken-9" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> </AdditionalInformation>
<Basket>
<wsse:Username>~~~SOAP Username goes here~~~</wsse:Username><amountInCents>1000</amountInCents>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">~~~SOAP Password goes <currencyCode>ZAR</currencyCode>
</Basket>
</soap:doTransaction>
</soapenv:Body>
here~~~</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<soap:doTransaction</soapenv:Envelope> |
Anchor |
---|
| response_without_bank_ref |
---|
| response_without_bank_ref |
---|
|
Top
Code Block |
---|
language | xml |
---|
title | RESPONSE - Credit Card: PAYMENT or RESERVE |
---|
linenumbers | true |
---|
|
<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>
<Api>ONE_ZERO</Api><resultMessage>Successful</resultMessage>
<Safekey>~~~SAFEKEY goes here ~~~<<successful>true</Safekey>successful>
<TransactionType>~~~a value of PAYMENT or RESERVE~~~<<displayMessage>Successful</TransactionType>displayMessage>
<AdditionalInformation> <merchantReference>1234567890</merchantReference>
<merchantReference>~~~Merchant ref goes here~~~</merchantReference> <payUReference>21976214819</payUReference>
<notificationUrl>http://example.com/notification-page/</notificationUrl> <paymentMethodsUsed </AdditionalInformation>xsi:type="ns2:creditCard" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Customer> <countryCode>27</countryCode><amountInCents>1000</amountInCents>
<countryOfResidence>ZAR</countryOfResidence> <cardExpiry>122015</cardExpiry>
<merchantUserId>0123465798</merchantUserId> <email>john.doe@example.com</email><cardNumber>400000******1000</cardNumber>
<firstName>John</firstName> <gatewayReference>37149772</gatewayReference>
<lastName> Doe </lastName> <mobile>0827777777</mobile><information>VISA</information>
<regionalId>5612124567897</regionalId> <nameOnCard>John Doe</nameOnCard>
<ip>127.0.0.1</ip> </Customer>paymentMethodsUsed>
<Basket>
</return>
<amountInCents>12000</amountInCents> </ns2:doTransactionResponse>
</soap:Body>
</soap:Envelope>
<currencyCode>ZAR</currencyCode> |
Anchor |
---|
| response_with_3D |
---|
| response_with_3D |
---|
|
Top
Code Block |
---|
language | xml |
---|
title | RESPONSE - Credit Card: PAYMENT or RESERVE (with 3D Secure enabled - card enrolled) |
---|
|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<description>Fraud Basket</description><ns2:doTransactionResponse xmlns:ns2="http://soap.api.controller.web.payjar.com/">
</Basket><return>
<Creditcard> <displayMessage>Transaction Pending 3DS <amountInCents>12000</amountInCents>Completion</displayMessage>
<cardExpiry>122014</cardExpiry> <fraud>
<cardNumber>4111120000005078</cardNumber> <cvv>123<<resultCode>V030</cvv>resultCode>
<nameOnCard>Fred Fraud</nameOnCard> </Creditcard>
</soap:doTransaction><resultMessage>Success</resultMessage>
</soapenv:Body> </soapenv:Envelope> |
...
Top
Code Block |
---|
language | xml |
---|
title | doTransaction request example (with Fraud enabled) |
---|
linenumbers | true |
---|
|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.api.controller.web.payjar.com/" xmlns:SOAPENV=" </fraud>
http://schemas.xmlsoap.org/soap/envelope/"><merchantReference>0123456789</merchantReference>
<soapenv: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"> <payUReference>31982857915</payUReference>
<wsse:UsernameToken<paymentMethodsUsed wsuxsi:Idtype="UsernameToken-9ns2:creditCard" xmlns:wsuxsi="http://docswww.oasis-openw3.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2001/XMLSchema-instance">
<amountInCents>350</amountInCents>
<wsse:Username>~~~SOAP Username goes here~~~</wsse:Username><cardExpiry>092014</cardExpiry>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">~~~SOAP Password goes <cardNumber>456546******6016</cardNumber>
here~~~</wsse:Password><gatewayReference>37117846</gatewayReference>
</wsse:UsernameToken><information>VISA</information>
</wsse:Security> </soapenv:Header> <soapenv:Body><nameOnCard>Jon Doe </nameOnCard>
<soap:doTransaction xmlns:ns2="http://soap.api.controller.web.payjar.com/"> <Api>ONE_ZERO</Api></paymentMethodsUsed>
<Safekey>~~~SAFEKEY goes here ~~~<<resultCode>P3DS</Safekey>resultCode>
<TransactionType>~~~a value of<resultMessage>Transaction PAYMENTPending or3DS RESERVE~~~<Completion</TransactionType>resultMessage>
<AdditionalInformation> <secure3D>
<deviceId>TERM003</deviceId> <secure3DId>A5ufG1Q3sp3qGDxu5de3</secure3DId>
<merchantReference>~~~Merchant ref goes here ~~~</merchantReference> <notificationUrl> <secure3DUrl><![CDATA[<form name="downloadForm" action="http://example.com/notification-page/</notificationUrl>acstest.bankserv.co.za/V3DSStart?osb=visa-3&VAA=B"
</AdditionalInformation> method="POST">
<Customer> <countryCode>27</countryCode> <table <countryOfResidence>ZAR</countryOfResidence>
name="dataTable" border="0" cellpadding="0">
<merchantUserId>0123465798</merchantUserId> <INPUT TYPE="hidden" NAME="TransactionID" <email>john.doe@example.com</email>value="A5ufG1Q3sp3qGDxu5de3">
<firstName>John</firstName> <INPUT TYPE="hidden" NAME="PaReq"
<lastName> Doe </lastName> <mobile>0827777777</mobile>
value="eNpVUtty2jAQfddXeNLHzliWbWzCLJohgZSkTbik0yZ9E2IpLmCD5Av46ys5dtK+nbO7Wp2zu/B9qxDHzygLhRweUWvxG51kPbyanrP463K3Ci7ZTL
<regionalId>5612124567897</regionalId> <ip>127.0.0.1</ip>zOskX5ebp5qR/Efje84jAfLfHEoUSlkyzlzPVcH2hHiWml5FakOQchTzf3TzzqhYHPgLaUwAHV/ZgzPwh7UdwH+sYJpOKA/EakO42qHG1UIoXTdQPaZAnIrEh
</Customer> <Basket>zdeEx84B2hECh9nyb58cBpVVVuau2iysztxZAbZoA/dA2LyzSxvo5WfM48Ov56+IJy9XPu/GPSzkZf9Gnl9vq2+MQqK0gsBY5ct9jgdf3fIdFg9AbMGOriRMQ
<amountInCents>12000</amountInCents>B6uFLwO3Z4S1jMDR/jN6Y4HN/BswbgqlMJWdnY4RwPMxS9HUmNm+YyMCteSZWqNyPjlBzFjcDyOjwYYJJKnOxX5v33TQmP6weju1S5G5mfadCPWsno
<currencyCode>ZAR</currencyCode> pZdP0QqF/qz3GyQb+q88XEbqqpaVQkZrws9K4bGUkza2r70PYOaHs6Bv13Un8BvvXHsA==">
<description>Fraud Basket</description> <!--Zero or more repetitions:--<INPUT TYPE="hidden" NAME="TermUrl" VALUE="http://staging.safeshop.co.za/s2s/Secure3D/Encode_Finish.asp">
<productLineItem> <INPUT TYPE="hidden" NAME="MD" VALUE="37117846">
<amount>10000</amount> </table>
<costAmount>1000</costAmount> <center><p><font type="Arial" size=2>Transfering <description>Productto 1</description>your bank for credit card authentication.
<giftMessage>Happy Birthday</giftMessage> <p> If you are not redirected please <a <productCode>ABC0002</productCode>
href="javascript:AutoSubmitForm()">click here</a> on the image to continue to access your banking
<quantity>1</quantity> institution.<p>
<recipientAddress1>21 Example Road</recipientAddress1> <input <recipientCity>Cape Town</recipientCity>
type="image" src="http://staging.images.safeshop.co.za/PaymentMethods/Secure3D/VbyV_blue_120x69.gif" name="continue"
<recipientCountryCode>ZAR</recipientCountryCode> value="Continue"></center>
<recipientPostalCode>8000</recipientPostalCode> </form>
<recipientFirstName>John</recipientFirstName> <script language="Javascript">
<recipientLastName>Doe</recipientLastName> </productLineItem>!--
<shippingDetails> function AutoSubmitForm() {document.downloadForm.submit();
<shippingAddress1>21 Example Road</shippingAddress1> }
<shippingAddressCity>Cape Town </shippingAddressCity> AutoSubmitForm();
<shippingEmail> john.doe@example.com </shippingEmail> //--></script>]]></secure3DUrl>
<shippingCountryCode>ZAR</shippingCountryCode> </secure3D>
<shippingStateCode>WC</shippingStateCode> <successful>true</successful>
<shippingMethod>P</shippingMethod> </return>
</ns2:doTransactionResponse>
</soap:Body>
<shppingFirstName>John</shppingFirstName></soap:Envelope> |
Anchor |
---|
| response_with_bank_ref |
---|
| response_with_bank_ref |
---|
|
Top
Code Block |
---|
language | xml |
---|
title | RESPONSE - Credit Card: PAYMENT or RESERVE (with bank reference) |
---|
linenumbers | true |
---|
|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<shippingLastName>Doe</shippingLastName><ns2:doTransactionResponse xmlns:ns2="http://soap.api.controller.web.payjar.com/">
<return>
<shippingFax>27214688020</shippingFax>shippingFax> <shippingPhone>27214688021</shippingPhone><resultCode>00</resultCode>
</shippingDetails> </Basket>
<Fraud>
<checkFraudOverride>false</checkFraudOverride><resultMessage>Successful</resultMessage>
<merchantWebSite>http://www.example.com/ </merchantWebSite><successful>true</successful>
<pcFingerPrint>owhjiflkwhefqwoaef<<displayMessage>Successful</pcFingerPrint>displayMessage>
</Fraud> <merchantReference>1234567890</merchantReference>
<Creditcard> <payUReference>21976214819</payUReference>
<amountInCents>12000</amountInCents> <paymentMethodsUsed <cardExpiry>122014</cardExpiry>xsi:type="ns2:creditCard" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<cardNumber>4111120000005078</cardNumber> <amountInCents>1000</amountInCents>
<cvv>123</cvv> <cardExpiry>122015</cardExpiry>
<nameOnCard>Fred Fraud</nameOnCard> <verified/> <cardNumber>400000******1000</cardNumber>
</Creditcard> </soap:doTransaction> <<gatewayReference>37149772</soapenv:Body>
</soapenv:Envelope> |
...
Top
Code Block |
---|
language | xml |
---|
title | Credit Card with Handshake Example |
---|
linenumbers | true |
---|
|
<DoTransaction Api=�1.0� Safekey=�{86903CCB-79A9-42EE-8637-1ACE90185507}� TransactionType=�PAYMENT� AuthenticationType=�HANDSHAKE� >gatewayReference>
<AdditionalInformation> <information>VISA</information>
<merchantReference>CJR001</merchantReference> </AdditionalInformation> <Customer><nameOnCard>John Doe</nameOnCard>
<mobile>27827891249</mobile> </Customer>paymentMethodsUsed>
<Basket> <customFields>
<amountInCents>1000</amountInCents> <currencyCode>ZAR</currencyCode><key>bankReference</key>
<description>ORD111</description><value>DEMO12</value>
</Basket> </customFields>
<PaymentMethods> </return>
<CreditCard pmID="jh23d29832jhdo23hu" CVV=�123� AmountInCents="2300" />  </ns2:doTransactionResponse>
</PaymentMethods>soap:Body>
</DoTransaction>soap:Envelope>
|
Anchor |
---|
| saveresponse_with_cardfraud_1approvesave |
---|
| response_with_cardfraud_1approve |
---|
|
Top
Code Block |
---|
language | xml |
---|
title | RESPONSE - Credit Card with Token (Save Card) first REQUEST:: PAYMENT or RESERVE (with Fraud enabled - APPROVE) |
---|
linenumbers | true |
---|
|
<soapenv<soap:Envelope xmlns:soapenvsoap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.api.controller.web.payjar.com.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:<soap:Body>
<soap<ns2:doTransactiondoTransactionResponse xmlns:ns2="http://soap.api.controller.web.payjar.com/">
<return>
<displayMessage>Successful</displayMessage>
<fraud>
<Api>ONE_ZERO</Api><resultCode>V030</resultCode>
<Safekey>{86903CCB-79A9-42EE-0174-1ACE90185507}</Safekey><resultMessage>Success</resultMessage>
<TransactionType>PAYMENT</TransactionType> </fraud>
<AuthenticationType>NA</AuthenticationType> <merchantReference>mercRef_1403097874</merchantReference>
<AdditionalInformation> <payUReference>185871924286</payUReference>
<merchantReference>MerchRef001</merchantReference> <paymentMethodsUsed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:creditCard">
<supportedPaymentMethods>CREDITCARD</supportedPaymentMethods> <storePaymentMethod>true<<amountInCents>2156</storePaymentMethod>amountInCents>
</AdditionalInformation> <cardExpiry>012015</cardExpiry>
<Customer> <countryCode>27</countryCode><cardNumber>542028******1323</cardNumber>
<merchantUserId>MechUser001</merchantUserId> <gatewayReference>37585977</gatewayReference>
<email>name.surname@mail.com</email> <information>MASTERCARD</information>
<firstName>Name</firstName> <nameOnCard>John <lastName>Surname</lastName>Doe</nameOnCard>
<mobile>27887592452<</mobile>paymentMethodsUsed>
<regionalId>2345679888<<resultCode>00</regionalId>resultCode>
</Customer> <Basket>
<resultMessage>Successful</resultMessage>
<amountInCents>1000</amountInCents> <successful>true</successful>
<currencyCode>ZAR<</currencyCode>return>
</ns2:doTransactionResponse>
</soap:Body>
</soap:Envelope>
<description>Goods</description>
</Basket> |
Anchor |
---|
| response_with_fraud_challenge |
---|
| response_with_fraud_challenge |
---|
|
Top
Code Block |
---|
language | xml |
---|
title | RESPONSE - Credit Card: PAYMENT or RESERVE (with Fraud enabled - CHALLENGE) |
---|
linenumbers | true |
---|
|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Creditcard> <amountInCents>1000</amountInCents>
<ns2:doTransactionResponse xmlns:ns2="http://soap.api.controller.web.payjar.com/">
<cardExpiry>122013</cardExpiry> <return>
<cardNumber>5111120000091349</cardNumber> <displayMessage>Successful</displayMessage>
<cvv>123</cvv> <fraud>
<nameOnCard>N Surname</nameOnCard> <resultCode>V035</resultCode>
</Creditcard> </soap:doTransaction> </soapenv:Body>
</soapenv:Envelope> |
...
Top
Code Block |
---|
language | xml |
---|
title | Credit Card with Token (Save Card) Subsequent REQUEST: |
---|
linenumbers | true |
---|
|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.api.controller.web.payjar.com/">
<soapenv:Header/>
<soapenv:Body> <resultMessage>CHALLENGE - 0330</resultMessage>
</fraud>
<merchantReference>mercRef_1403098425</merchantReference>
<payUReference>185878360665</payUReference>
<soap:doTransaction<paymentMethodsUsed xmlns:ns2xsi="http://soapwww.api.controller.web.payjar.com/w3.org/2001/XMLSchema-instance" xsi:type="ns2:creditCard">
<Api>ONE_ZERO</Api> <Safekey>{86903CCB-79A9-42EE-0174-1ACE90185507}</Safekey> <amountInCents>7215</amountInCents>
<TransactionType>PAYMENT</TransactionType> <AuthenticationType>TOKEN<<cardExpiry>012015</AuthenticationType>cardExpiry>
<AdditionalInformation> <merchantReference>MerchRef001</merchantReference><cardNumber>542028******1323</cardNumber>
<supportedPaymentMethods>CREDITCARD</supportedPaymentMethods> <<gatewayReference>37585978</AdditionalInformation>gatewayReference>
<Customer> <information>MASTERCARD</information>
<countryCode>27</countryCode> <merchantUserId>MechUser001</merchantUserId> <nameOnCard>John Doe</nameOnCard>
<email>name.surname@mail.com</email> </paymentMethodsUsed>
<firstName>Name</firstName> <lastName>Surname</lastName> <resultCode>00</resultCode>
<mobile>27887592452</mobile> <resultMessage>Successful</resultMessage>
<regionalId>2345679888</regionalId> <<successful>true</Customer>successful>
<Basket> </return>
<amountInCents>1000</amountInCents></ns2:doTransactionResponse>
</soap:Body>
</soap:Envelope>
<currencyCode>ZAR</currencyCode>
|
Anchor |
---|
| response_with_fraud_deny |
---|
| response_with_fraud_deny |
---|
|
Top
Code Block |
---|
language | xml |
---|
title | RESPONSE - Credit Card: PAYMENT or RESERVE (with Fraud enabled - DENY) |
---|
linenumbers | true |
---|
|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<description>Goods</description>
</Basket><ns2:doTransactionResponse xmlns:ns2="http://soap.api.controller.web.payjar.com/">
<return>
<Creditcard <pmId>DyZ7XBB5QxF5FEoIADAkMCQAUnlDEmIRVXNTa3xUYVUWfEUT</pmId><fraud>
<amountInCents>1000</amountInCents> <cvv>123</cvv><resultCode>V039</resultCode>
</Creditcard> </soap:doTransaction> </soapenv:Body>
</soapenv:Envelope> |
...
Top
Code Block |
---|
language | xml |
---|
title | RESPONSE - Credit Card: PAYMENT or RESERVE |
---|
linenumbers | true |
---|
|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body><resultMessage>DENY - 0700</resultMessage>
<ns2:doTransactionResponse xmlns:ns2="http://soap.api.controller.web.payjar.com/"> </fraud>
<return> <merchantReference>mercRef_1403098545</merchantReference>
<displayMessage>Successful</displayMessage> <payUReference>185879181093</payUReference>
<merchantReference>Munier</merchantReference> <payUReference>31976214819<<resultCode>P044</payUReference>resultCode>
<paymentMethodsUsed xsi:type="ns2:creditCard" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<resultMessage>Rejected for fraud</resultMessage>
<amountInCents>1000</amountInCents> <successful>false</successful>
<cardExpiry>122015<</cardExpiry>return>
</ns2:doTransactionResponse>
</soap:Body>
</soap:Envelope>
<cardNumber>400000******1000</cardNumber> |
Anchor |
---|
| response_eBucks_PAYMENT |
---|
| response_eBucks_PAYMENT |
---|
|
Top
Code Block |
---|
language | xml |
---|
title | RESPONSE - eBucks (PAYMENT) |
---|
linenumbers | true |
---|
|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<gatewayReference>37149772</gatewayReference>
<information>VISA</information>
<nameOnCard>NonThree</nameOnCard>
<ns2:doTransactionResponse xmlns:ns2="http://soap.api.controller.web.payjar.com/">
</paymentMethodsUsed><return>
<resultCode>00</resultCode>
<resultMessage>Successful</resultMessage>
<successful>true</successful>
</return>
</ns2:doTransactionResponse> </soap:Body> </soap:Envelope> |
...
Top
Code Block |
---|
language | xml |
---|
title | RESPONSE - Credit Card: PAYMENT or RESERVE (with bank reference) |
---|
linenumbers | true |
---|
|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body> <displayMessage>Successful</displayMessage>
<merchantReference>1234567890</merchantReference>
<payUReference>21976214819</payUReference>
<ns2:doTransactionResponse<paymentMethodsUsed xsi:type="ns2:ebucks" xmlns:ns2xsi="http://soapwww.api.controller.web.payjar.com/w3.org/2001/XMLSchema-instance">
<return> <amountInCents>12000</amountInCents>
<customFields> </paymentMethodsUsed>
<key>bankReference</key></return>
</ns2:doTransactionResponse>
</soap:Body>
<value>DEMO12</value></soap:Envelope> |
Anchor |
---|
| response_EFTPro_payment |
---|
| response_EFTPro_payment |
---|
|
Top
Code Block |
---|
language | xml |
---|
title | RESPONSE - EFTPro payment |
---|
linenumbers | true |
---|
|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
</customFields><ns2:doTransactionResponse xmlns:ns2="http://soap.api.controller.web.payjar.com/">
<return>
<displayMessage>Successful</displayMessage> <merchantReference>Munier<<merchantReference>EFT_PRO_98453984398</merchantReference>
<payUReference>31976214819<<payUReference>53390698880</payUReference>
<paymentMethodsUsed xsi:type="ns2:creditCardeft" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<amountInCents>1000</amountInCents>/2001/XMLSchema-instance">
<cardExpiry>122015<<amountInCents>100</cardExpiry>amountInCents>
<cardNumber>400000******1000</cardNumber></paymentMethodsUsed>
<redirect>
<gatewayReference>37149772</gatewayReference> <information>VISA</information><method>HTTP_GET</method>
<nameOnCard>NonThree<<type>EFT_PRO</nameOnCard>type>
</paymentMethodsUsed> <resultCode>00</resultCode><url>http://localhost:8080/PayJarWeb/redirectGet.do?PayUReference=53390698880</url>
<resultMessage>Successful<</resultMessage>redirect>
<successful>true</successful>
</return>
</ns2:doTransactionResponse>
</soap:Body>
</soap:Envelope>
|