Repository navigation
Pax API: Transaction Commands
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]].
-
T00(the command) -
1.36(The API version we're using) -
Transaction Type, usually
01. -
Amount, can just be the the amount with no decimal. Eg. to charge $1, you would specify
100. - Account Information. Can be left blank.
- Trace Information.
- AVS Information.
- Cashier Information.
- Commercial Information.
- MOTO/E-Commerce
- Additional Infromation
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)
- Account:
-
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
- 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: