Callback to an FTP server
In some cases, a system requires a file to be placed on a specific location using an FTP server. This can performed by this callback method:
PARAMETER | DESCRIPTION | EXAMPLE |
---|---|---|
FTP Server | The host or IP address of the FTP server. | 10.0.0.5 |
Port number | The number of the port that must be used for this connection. | 21 |
Username | The name of the FTP user for this connection. | Theftpuser |
Password | The password of the FTP user for this connection. | S3cr3tFTP |
Folder | The name of the folder of the FTP server where a file must be created. | PBL\PaymentCallback |
Filename | The name of the file that will be created. This can be a 'fixed' file name but also parameters or functions can be used, like [*UniqueId] | [*UniqueId].csv |
Header | The first part of the body of the file. | ref;amount;date;paymethod;status |
Body | The second part of the body of the file. | [*OrderId]; [*Amount]; [*DateNow]; [PaymentMethod]; [*CallbackType] |
Footer | The third and last part of the body of the file. |
Combined, the example values will return in a file with a unique number that will be placed in the folder PBL\PaymentCallBack and with the contents:
ref;amount;date;paymethod;status
[*OrderId];[*Amount];[*DateNow];[*PaymentMethod];[*CallbackType]
Date updated: 2019-06-12