Batch payment allows a merchant to prepare a file containing a list of transactions that will subsequently be processed by PayFacto’s solution. The files may be submitted manually via PayFacto Solution’s on-line interface, or more automatically via FTP. The files are processed daily.
The batch payment system, as included in PayFacto’s solution, allows a merchant to perform purchase and preauthorization transactions, as well as to close preauthorization. These transactions are sent as part of a file to PayFacto’s solution, which processes them on a daily basis.
The FTP transmission process is as follows. The merchant must first create a transaction file and upload it to an FTP server. At the set processing time, the payment solution connects to the merchant’s FTP server and downloads the transaction files. The downloaded files are then checked for consistency. In case of error, a file describing the error is returned to the merchant. Accepted files are processed, the included transactions are run, and the results are recorded. Upon completion of all transactions, the payment solution creates a response file containing all transactions and their outcomes (approved, declined, etc.).
To submit transaction files manually, a merchant must first create a transaction file and use the payment solution’s on-line interface to upload the file to PayFacto. The received files are then checked for consistency. In case of error, the browser displays an error message.
The received files are put on hold and processed at the time set by PayFacto’s solution. All transactions are processed individually and the payment solution creates a response file containing all transactions and their outcome (approved, declined, etc.). This file is available via the Web interface.
The installation section informs the merchant of the steps they must take to enable them to make batch payments with the PayFacto payment solution.
Merchants who wish to transmit the transaction files via FTP must use a specific configuration.
The merchant must create a user name on the FTP server as well as three directories that can be both read from and written to.
The merchant must first create a directory that will contain the files for the PayFacto Solution to download. The merchant may give the directory any name. In this directory, the merchant must create a sub-directory named “done”, which will contain the files that have been sent to PayFacto.
Another directory must be created to contain the response files, including error files and transaction result files.
Merchants who wish to transfer files via FTP must contact Customer Service and provide the necessary information to connect to the FTP server:
It is now possible to configure a transfer via a standard secure protocol: SFTP (FTP over SSH) and FTPS (FTP over SSL). The last one may be used with implicit and explicit mode. It is possible to use a special port (other than the default) for these two modes of transfer. You need to notify your integrator during the integration process.
Before transmitting transactions, the merchant must build a file containing all the transactions performed. These transactions consist of purchases, preauthorization, and preauthorization closings.
Six transactions types are supported. The obligatory parameters are as follows:
The transaction file has two main sections: the header, which contains information about the merchant and the transaction batch, and the transaction section. The file must be in text format.
The header contains three parameters that need to be specified. Each parameter must be separated by a comma.
Transactions must be entered on separate lines after the header. Transactions may have 6 to 9 parameters, depending on the type: purchases and preauthorization each require 6 parameters, while authorization closings require 9 parameters. Each parameter must be separated by a comma.
00 : purchase;
01 : preauthorization;
02 : preauthorization completion;
03 : refund;
52 : purchase without card (with token)
50 : refund without card
*The transaction and authorization numbers are returned in a response file following the preauthorization.
Note: The empty parameters between the commas are needed if they are in between needed parameters.
Refer to image with transaction code 50, card number and expiration date is empty due to them being in between needed parameters. While for a transaction code 00 the parameters that are not needed are at the end so we can end the line early.
The files must be on the FTP server by the time determined for batch processing.
All files must have an “.txt” or “.csv” extension.
When using an FTP server, return codes are sent to the current directory in a file that has the same name as the original file but an “.err” extension. Error messages are documented in section 4.
In the Web interface, only import errors are reported. Errors are displayed during the importing.
Only basic validation procedures are performed when importing a batch file. If the file contains the correct number of parameters and if the parameters have the required length, the file is approved. However, the file may be declined later in the process if one or more of the following parameters do not meet the requirements:
The return file’s name will be : yyyMMddhhmm_ FileName.enc
The encrypted file’s name will be : BatchNumber_ yyyyMMddhhmm.csv
Response file’s format :
Header line : : batch number, merchant number, number of transactions ;
Batch number : 8 characters [A-Z, 0-9] ;
Merchant number : 8 characters [0-9] ;
Number of transactions : digit [0-9] ;
One line per transaction : transaction code, client number, amount, card number, expiration date, bill number, return code, transaction number, authorization number ;
Transaction code : 00 ou 01 ou 02 ;
Client number : 8 characters [A-Z, 0-9] ;
Amount : 11 characters [0-9] ;
Card number : Up to 40 characters [space, 0-9] ;
Expiration date : 4 characters [0-9] MMYY ;
Bill number : 12 characters [A-Z, 0-9] ;
Return code : Up to 4 characters [A-Z, 0-9] (return codes are detailed separately) ;
Transaction number : (Completed transaction) Up to 12 characters [0-9] ;
Authorization number : (Authorized transaction) 8 characters [A-Z, 0-9, space].
If more than one merchant uses batch processing, a list of merchants will be displayed.
All batches are displayed in reverse chronological order. A batch has either a “Processing” or “Completed” status. If the batch is completed, the response file (the same one that was transferred via FTP) may be downloaded.
All batches are displayed in reverse chronological order.
A batch has either a “Received”, “Processing”, or “Completed status”.
A batch with a “Received” status may be deleted.
If the batch is completed, the response file may be downloaded.
Click on “Download” to download the response file.
After selecting the file and clicking “Send”, a confirmation screen displays the file name, batch number and transaction number.
If the import was successful, the Web interface will return the message “Status Received (0) if the file successfully imported”. Otherwise, a 60XX error message is displayed.
After clicking on “Delete”, a confirmation screen appears, displaying the batch’s details.