January 2020
Intermediate to advanced
530 pages
11h 11m
English
The /payment endpoint will accept the payment requests from the bank portal frontend. It uses multer to accept the transaction object with the transaction details and upload the compliance and AML documents.
Before we write the code for the service, we define the cpUpload object that will be used to configure multer, to upload the documents.
The cpUpload object provides multer the configuration for the files to be uploaded. The files at the invfile (invoice file), boefile (BOE/BOL file), and docfile (other document) fields will be uploaded, as follows:
var cpUpload = upload.fields([{ name: 'invfile', maxCount: 1 }, { name: 'boefile', maxCount: 1 }, { name: 'docfile', maxCount: 1 }])
The upload ...
Read now
Unlock full access