Skip to content

Pax API: Transaction Commands

Finn edited this page Jun 27, 2016 · 2 revisions

There are several transaction commands, they are all pretty similar. Here is the structure of T00 (Do Credit). Fields are, as usual, [[separated by a <FS> character|Pax API: Control Characters]].

The response, T01, comes back similarly:

  • Status: 0

  • Command: T01

  • Version: 1.35

  • Response Code: 000000

  • Response Message: OK

  • Host Information: (page 189):

  • Host respones code: 0

  • Host response message: APPROVED

  • Auth Code: 000000

  • Host reference number: 88888888

  • Trace Number: (blank)

  • Batch number: (blank)

  • Transaction Type: 01 (documented on page 46). Here are a few:

  • Amount Information: (documented on page 181):

  • Approve Amount: 403 (this transaction was for $4.03)

  • Amount Due: 0

  • Tip Amount: 0

  • Cash Back Amount: 0

  • Merchant Fee: 0

  • Tax Amount: 0

  • Balance1: 12048

  • Balance2: 2022

  • Account Information:

    • Account: 4801 (the last 4 digits of my card number)
    • Entry Mode: 1 (1 = Swipe)
    • Expiry Date: 0619 (my card expires in June, 2019)
    • EBT Type: (blank)
    • Voucher number: (blank)
    • New Account no: (blank)
    • Card type: 01
    • Card Holder: HERZFELD/FINNIAN (my legal last/first name)
    • CVD Approval Code: (blank)
    • CVD Message: (blank)
    • Card Present Indicator: 0 (0 = present, 1 = not present)
  • Trace Information:

  • Transaction Number: 19

  • Reference Number: 1

  • Time Stamp: 20160625022956

  • AVS Information: (blank)

  • Commericial Information: (blank)

  • MOTO/E-Commerce: (blank)

  • Additional Information: (arbitrary key/value pairs)

  • CARDBIN: 414709

Database Mappings

  • dateID: date('Ymd')
  • empNo: CoreLocal::get("CashierNo")
  • registerNo: CoreLocal::get("laneno")
  • transNo: CoreLocal::get("transno")
  • transID: CoreLocal::get("paycard_id")
  • previousPaycardTransactionID: (unknown)
  • processor: (doesn't seem to be returned. TODO)
  • refNum: $out['host']['reference_number']
  • live: (unknown)
  • cardType: $out['account']['card_type']
  • transType: $out['transaction_type']
  • amount: $out['amount']['approved']
  • PAN: $out['additional']['CARDBIN']."000000".$out['account']['number']
  • issuer: (we don't appear to get this information, maybe put CARDBIN here)
  • name: $out['account']['name']
  • manual: $out['account']['entry'] == 0
  • requestDatetime: (we don't appear to get this information)
  • responseDatetime: date('Y-m-d H:i:s')
  • seconds: (we don't appear to get this information)
  • commErr: (TODO error handling)
  • httpCode: (proly wont come up)
  • validResponse:
  • xResultCode:
  • xApprovalNumber:
  • xResponseCode:
  • xResultMessage:
  • xTransactionID:
  • xBalance:
  • xToken:
  • xProcessorRef:
  • xAcquirerRef:

Clone this wiki locally