Versions Compared

Key

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

...

  1. API requests:
  2. API response:

Anchor
example_without_fraud
example_without_fraud

...

Code Block
languagexml
titleCredit Card with Token (Save Card) Subsequent REQUEST:
linenumberstrue
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.api.controller.web.payjar.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <soap:doTransaction xmlns:ns2="http://soap.api.controller.web.payjar.com/">
         <Api>ONE_ZERO</Api>
         <Safekey>{86903CCB-79A9-42EE-0174-1ACE90185507}</Safekey>
         <TransactionType>PAYMENT</TransactionType>
         <AuthenticationType>TOKEN</AuthenticationType>
         <AdditionalInformation>
          <merchantReference>MerchRef001</merchantReference>
          <supportedPaymentMethods>CREDITCARD</supportedPaymentMethods>
         </AdditionalInformation>
         <Customer>
            <countryCode>27</countryCode>
            <merchantUserId>MechUser001</merchantUserId>
            <email>name.surname@mail.com</email>
            <firstName>Name</firstName>
            <lastName>Surname</lastName>
            <mobile>27887592452</mobile>
            <regionalId>2345679888</regionalId>
         </Customer>
         <Basket>
            <amountInCents>1000</amountInCents>
            <currencyCode>ZAR</currencyCode>
            <description>Goods</description>
          </Basket>       
          <Creditcard
            <pmId>DyZ7XBB5QxF5FEoIADAkMCQAUnlDEmIRVXNTa3xUYVUWfEUT</pmId>
            <amountInCents>1000</amountInCents>
            <cvv>123</cvv>
         </Creditcard>
      </soap:doTransaction>
   </soapenv:Body>
</soapenv:Envelope>

doTransaction (PAYMENT -  EBUCKS)

The following is to send the payment instruction to the ebucks' API when paying with eBucks and can have a transaction type of payment or reserve. The corresponding method API call to ebucks PAYMENT API is Auth or AuthSettle

REQUEST

...

Parameter

...

Type

...

Definition

...

Required

...

Api

...

Varchar

...

Version of the API (e.g.ONE_ZERO).

...

Y

...

Safekey

...

Varchar(38)

...

PayU Merchant Identifier ('{GUID}'). Provided to merchant upon integration (e.g. {86903CCB-79A9-42EE-0174-1ACE90185507}).

...

Y

...

TransactionType

...

Varchar

...

The type of transaction being performed (e.g. PAYMENT, RESERVE).

...

Y

...

payUReference

...

Varchar(24)

...

PayU reference from initial authenticate call to retain transaction thread

...

 

...

Additional Information

...

merchantReference

...

Varchar(64)

...

Unique merchant identifier for transaction.

...

Y

...

payUReference

...

Varchar(24)

...

PayU reference from initial authentication call to retain transaction thread (Transaction record will be created with supplied reference).

...

N

...

notificationUrl

...

Varchar

...

URL where the merchant would like to be notified of transaction result via IPN (Instant Payment Notification). 
Needed for "secure3d=true" transactions.

...

N

...

returnUrl

...

Varchar

...

URL to return browser to after a customer has completed transaction. Needed for "secure3d=true" transactions.

...

N

...

Customer

...

merchantUserId

...

Varchar(64)

...

Unique Customer ID in merchant system

...

Y

...

email

...

Varchar(64)

...

Customer Email Address.

...

N

...

firstName

...

Varchar(64)

...

Customer first name.

...

N

...

lastName

...

Varchar(64)

...

Customer last name.

...

N

...

mobile

...

Varchar

...

Customer Mobile Number in international format without "+" (e.g. 27827891248).

...

N

...

Basket

...

amountInCents

...

Integer

...

Total amount of the basket in cents. Format as 1000 for R10.00.

...

Y

...

currencyCode

...

Varchar(2)

...

Currency code defined by PayU. Example: ZAR.

...

Y

...

description

...

Varchar(64)

...

Basket description that will show on PayU.

...

Y

...

Ebucks

...

amountInCents

...

Integer

...

Amount in eBucks cents.

...

Y

...

Customfield

...

ebucksOtp

...

Integer

...

OTP retrieved from customer which was generated during the GenerateOTP process.

...

Y

...

ebucksAccountNumber

...

Varchar

...

eBucks Member's account number retrieved from the AUTHENTICATE_ACCOUNT call.

...

    </Creditcard>
      </soap:doTransaction>
   </soapenv:Body>
</soapenv:Envelope>

Anchor
REQUEST_eBucks_PAYMENT
REQUEST_eBucks_PAYMENT

Top

Code Block
languagexml
titledoTransaction REQUEST - eBucks (PAYMENT - EBUCKS) - REQUEST
linenumberstrue
<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>

...

Code Block
languagexml
titleRESPONSE - Credit Card: PAYMENT or RESERVE (with Fraud enabled - DENY)
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>
                <fraud>
                    <resultCode>V039</resultCode>
                    <resultMessage>DENY - 0700</resultMessage>
                </fraud>
                <merchantReference>mercRef_1403098545</merchantReference>
                <payUReference>185879181093</payUReference>
                <resultCode>P044</resultCode>
                <resultMessage>Rejected for fraud</resultMessage>
                <successful>false</successful>
            </return>
        </ns2:doTransactionResponse>
    </soap:Body>
</soap:Envelope>

Anchor
response_witheBucks_fraud_denyPAYMENT
response_witheBucks_fraud_denyPAYMENT

Top

Code Block
languagexml
titleRESPONSE - doTransaction eBucks (PAYMENT - EBUCKS)
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:ebucks" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
               <amountInCents>12000</amountInCents>
            </paymentMethodsUsed>
         </return>
      </ns2:doTransactionResponse>
   </soap:Body>
</soap:Envelope>

...