Versions Compared

Key

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

Anchor
doctop
doctop

Click on any of the following links to view a sample of the respective data structure examples of the following:

  1. API requests:
  2. API response:

...

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>

Anchor
response_without_bank_ref
response_without_bank_ref

Top

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

   <soap:Body>

      <ns2:doTransactionResponse xmlns:ns2="http://soap.api.controller.web.payjar.com/">

         <return>

            <customFields>

               <key>bankReference</key>

               <value>DEMO12</value>

            </customFields>

            <displayMessage>Successful</displayMessage>

            <merchantReference>Munier</merchantReference>

            <payUReference>31976214819</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>NonThree</nameOnCard>

            </paymentMethodsUsed>

            <resultCode>00</resultCode>

            <resultMessage>Successful</resultMessage>

            <successful>true</successful>

         </return>

      </ns2:doTransactionResponse>

   </soap:Body>

</soap:Envelope>

 

Anchor
response_with_bank_ref
response_with_bank_ref

Top

Code Block
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns2:doTransactionResponse xmlns:ns2="http://soap.api.controller.web.payjar.com/">
         <return>
            <customFields>
               <key>bankReference</key>
               <value>DEMO12</value>
            </customFields>
            <displayMessage>Successful</displayMessage>
            <merchantReference>Munier</merchantReference>
            <payUReference>31976214819</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>NonThree</nameOnCard>
            </paymentMethodsUsed>
            <resultCode>00</resultCode>
            <resultMessage>Successful</resultMessage>
            <successful>true</successful>
         </return>
      </ns2:doTransactionResponse>
   </soap:Body>
</soap:Envelope>