PX Batch Processor V4.0The Payment Express® Batch Processor is designed to process input files containing credit card payment information for authorisation. The Batch Processor connects directly to the DPS web server using HTTPS posts. Input files are processed on the central batch processor at DPS and the output is returned.
Using the Batch Processor
InstallationPxBat (MSI) InstallerAccess the Payment Express Batch Processor download at
https://www.paymentexpress.com/pxmi/logon
Files
The following files are installed in the Batch Processor installation directory during installation.
Service
The following service is installed during installation.
Installing Multiple Instances of Batch Processor on a Single MachineIn the case where multiple instances of Batch Processor need to be installed side-by-side on one machine, the first instance should be installed via the PxBat4.msi and the remaining instances manually by copying PxBat.exe and PxBatConfig.exe from the original PxBat4 folder (within C:\Program Files\Direct Payment Solutions\, if the default destination is used) and then pasted into separate directories, with one set of copies per new instance of Batch Processor required.
As illustrated by the composite image above, the new copies of PxBat.exe need to be renamed.
The renaming should use the format PxBat_NEWLABEL.exe (where _NEWLabel is the addition to the filename),
as when the new instance of PxBat is installed as a service the appended label (_NEWLABEL in this example) will be used as the default addition to the service display name (see below).
In the composite image displayed above, the directory renaming matches the .exe renaming, this isn't necessary, but isn't a bad convention to adhere to. Once the additional instances of
PxBat have been copied to new directories and renamed, they can be setup and run as services.
Shared Network Input DirectoryThe input directory defined for an instance of PxBat does not have to reside on the local machine, it can be a shared network folder. The user that will be logged in when the instance of PxBat is expected to be running will need access to the shared network directory. Once access is obtained, that shared network directory can be defined as the input directory for the instance of PxBat by entering the network path of the directory into the directory field within PxBatConfig.exe.
Batch Processor via Web ProxyAn instance of PxBat can be used through a web proxy, however the service that corresponds to the instance needs to be 'run as' a user that has access/permissions setup with that proxy. This can be done by navigating to the 'Logon' tab within the 'Properties' dialog of the corresponding service. Once there, the 'This account' option should be selected and valid details entered.
Configuration
To configure an instance of PxBat, run the corresponding PxBatConfig.exe file.
![]() General Options
Transaction Options
Set LogonThe Batch Processor username and password can be defined by selecting the "Set Logon" button. The username and password defined for an instance of PxBat are stored in encrypted form within the LOGON.DAT file in the program's directory.
File FormatInput File FormatInput File format is CSV (Comma Separated Value), Excel style. Each line of the file represents an authorisation, purchase, completion or refund request and has the following format: TxnType,Account,MerchantReference,CardNumber,Expiry,Amount,DpsTxnRef,CPC,
Sample Input Record Format P,9997,Ref1,4111111111111111,1010,1.23,,,TEST NAME1 Output File FormatInput File format is CSV (Comma Separated Value), Excel style. The original filename is used with the suffix "_OUT" appended to the original name. The file type .CSV is preserved. Each line of the file represents an authorisation, purchase, completion or refund result and has the following format: TxnType,Account,MerchantReference,CardNumber,ExpiryDate,Amount,DpsTxnRef(Input), If the output file name already exists (IE: if the same input file name is used before the original output file is deleted), then a date stamp is appended after the _OUT suffix. In this case, the output filename is INPUT_OUTyyyymmddhhmmss.CSV
Sample Output Record Format P,0,Ref1,"4988720008880035",0102,133.20,,345,A J CARDHOULD,1,00,ACCEPTED,886453, The above output line describes a Purchase transaction for account 0, reference "Ref1", card number 4988720007770035, Expiry Date January 2002, amount $133.20, CVC2 value 345, Card holder name is "A J CARDHOULD", Result is 1 (approved), ResponseCode is "00", Text is ACCEPTED, TxnRef is 100035REF1, Date is 12th Sep 1999, Time is 6:09:22pm, Approval Code is 886453 and Date of Settlement is 12 Sept 1999 Batching ScenariosPurchase Transactions
Note: The DPSTxnRef (0000000300a7a5e9) that can be used later for refund transactions is highlighted in the output. Refund Transactions using DPSTxnRef(Version 3.32 & above only)
Note: The DpsTxnRef is highlighted above. This value is given as the output in the original purchase, complete or billing transaction. All refund transactions need to be matched with the original transaction. Authorisation Transactions
Note: The Pre-Authorisation code (00113400a7a5c400000003) is given back and can
be used to complete transactions. Completion Transactions using Pre-Auth number
Note: The Pre-Auth Number is highlighted above. This value was given as the output from the original authorisation transaction. Completion transactions using DPSTxnRef(Version 3.32 & above only)
Note: The DpsTxnRef is highlighted above. This value was given as the output from the original authorisation transaction. A further DpsTxnRef is given back in the completion response and is unique to the complete transaction and would be used to match a refund against the transaction. Billing Transactions using BillingID
Note: On the Setup tab of the PXBAT control panel the check box named "DPS
BillingId" needs to be unchecked. Billing transactions using DpsBillingID(Version 3.32 & above only)
Note: On the Setup tab of the PXBAT control panel the check box named "DPS
BillingId" needs to be checked. Adding billing cards(Version 3.46 & above only)To add a billing card to the Billing Vault and receive a token for subsequent billing purposes you will use a different message format. A format specifier, "X0006", must appear as the first field in every record. Valid TxnTypes are "P", which processes a purchase transaction and stores the card details, "A", which processes an authorisation transaction and stores the card details, and "H", which simply stores the card details without processing a financial transaction. X0006, TxnType, Operation, Account, Merchant Reference, Card Number, Expiry, Amount, Issue Number, Card holder name, Billing ID The Billing ID field can be left blank if you intend to obtain and use the DpsBillingId only. For "H" transaction type use an amount of "1.00" which will be disregarded as no financial transaction takes place.
The output format has the following properties in addition to the input message - AVS TransactionsAddress verification uses a different file format. The following should be used for the AVS message format and the format specifier "X0003" must appear as the first field in every record.
The output format has the following properties in addition to the input message - Airline Transactions(Version 3.44 & above only)Airline data uses a different file format. The following should be used for the
airline data message format and the format specifier "X0004" must appear as the first field in every record.
The output format has the following properties in addition to the input message - Airline and AVS Transactions(Version 3.44 & above only)Airline data can be submitted in conjunction with AVS data. The following should be used for the
airline data/AVS message format and the format specifier "X0005" must appear as the first field in every record.
The output format has the following properties in addition to the input message - Message Field PropertiesAccount (input) Max 4 characters
Accounts with DPS can be setup with multiple merchant numbers. This field can be used to specify which merchant number should be used to process the transaction.
Allowed values range between 0-9999. If only one merchant account has been setup this value will usually be 1 for a live account. And 9997 for a development account.
Please contact DPS to confirm the value that should be used in this field.
AcquirerDate (output) Max 8 bytes
Contains the date the transaction was processed in YYYYMMDD format. This field may be blank if the transaction was rejected locally or otherwise not
processed by the bank host.
AcquirerTime (output) Max 8 bytes
Contains the date the time of the day the transaction was processed in HHMMSS format. This field may be blank if the transaction was rejected locally or otherwise not
processed by the bank host.
Amount (input) Max 13 characters
Set the amount to be charged or refunded (depending on the TxnType).
Format is d.cc (d=dollars, c=cents). Max amount is 99999.99
AVS Post Code (output) Datatype: BSTR
Max 20 bytes
Address Verification System property. Post Code that is listed on the customer's bank statement.
AVS StreetAddress (output) Datatype: BSTR
Max 60 bytes
Address Verification System property. Address that is listed on the customer's bank statement.
AVS Action (output) Datatype: INT
Max 1 bytes
Address Verification System property. Values are 0,1 & 2.0 - do not check AVS details with acquirer, but pass them through to Payment Express only. 1 - Attempt AVS check. If the acquirer doesn't support AVS or is unavailable, then transaction will proceed as normal. If AVS is supported it will check the transaction and give the result. 2 - The transactions needs to be checked by AVS, even if isn't available, otherwise the transaction will be blocked. The value will most likely be 1 for most circumstances. BillingId (input) Max 32 characters
This is an identifier generated by the merchant application that is
used to identify a customer or billing entry and can be used as input instead
of card number and date expiry for subsequent billing transactions.
CardHolderName (output) Max 64 characters
The cardholder name as it appears on customer card.
CardNumber (input) Max 20 characters
The card number. No leading or embedded blanks are permitted. Must contain a
numeric value.
Corporate Purchase Card (input) Mandatory 30 characters
Amex Corporate Purchase Card transactions. Extended data, which will appear on corporate cardholders statements if your merchant account supports it. This field needs to be exactly 30 characters, with the first character being an "A". The CPC field contains 2 corparate purchase card reference fields, with the 1st 9 characters after the "A" belonging to Corporate Purchase Card data 1 and the last 20 characters of the CPC input field belonging to Corporate Purchase Card data 2. You will need to pad if your reference is shorter than the required field length.
Example - P,9997,Reference,4111111111111111,1010,1.23,,A4387436 Payment March ,TEST NAME DateExpiry (input) Max 4 bytes
Indicates card expiry date. Format is MMYY where MM is month 01-12 and Year
00-99. do not insert "/" or other delimiter. Some acquirers do not require this field - contact DPS for more details. Also not required if BillingId/DpsBillingId is used.
DateSettlement (output) Max 8 bytes
Indicates Date of settlement (when money will be deposited in Merchant bank
account) if this is supported by the Acquirer, otherwise contains the
date the transaction was processed in YYYYMMDD format.
DpsTxnRef (input/output) Max 16 Characters
Returned for every transaction. If the transaction was approved, DpsTxnRef can
be used as input to a Refund or Completion transaction for other DPS products. Used to specify a transaction for
refund without supplying the original card number and expiry date. The
DpsTxnRef value returned by the original approved Auth transaction must be
supplied also when doing a complete transaction.
DpsBillingId (input) Max 16 Characters
When output, contains the Payment Express generated BillingId. Only returned for
transactions that are requested by the application with the EnableAddBillCard
value set to 1 (true) indicating a token billing entry should be created.
MerchantReference (input) Max 32 Characters
Free text to appear on transaction reports.
ResponseText (output) Max 20 Characters
The Response Text is associated with ResponseCode. For successful transactions this is usually Approved and for unsuccessful transactions this can be a number of texts depending on why the transaction declined. For example it could be Card Expired, Declined, Invalid Card, REFER TO CARD ISSUER, DO NOT HONOUR. All acquirers have their own response texts and should be displayed for better understanding of why the transaction got declined.
ResponseCode (output) Max 2 characters
2 character response code from the bank. Explanation of the ResponseCode is usually provided in the ResponseText.
Result (output) Boolean true/false
Indicates success or failure of the transaction. 1 for successful and 0 for an unsuccessful transaction.
TxnType (input) Max 1 Character
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||



