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