C1-TND-PROC

This algorithm is invoked when the status of the upload request is changed to Processing. It fetches a list of records which are in the Valid status. For each valid record, this algorithm cancels the payment tender and all the payments of the associated payment event. It changes the status of the payment tender and its associated payments to Canceled. While canceling a payment tender, it requires the cancel reason that indicates the reason why the payment tender and its associated payments are canceled. In addition, this algorithm stamps the characteristics given in the record on the respective payment tender after canceling it.

If the record is successfully processed, the status of the record is changed to Processed. However, if the record could not be processed successfully due to any reason, the status of the record is changed to Error. Finally, the status of the upload request is changed to Processed.