C1-PAYCREATE

This algorithm creates the payment event, payments, payment segments, and payment tender. A payment is created for each record in the C1_​PAY_​DISTRIBUTION table where the payment amount is greater than or less than zero. The status of the payments is set to Freezable. If any error occurs while creating a payment, the status of the payment is set to Error. The payment event ID is updated corresponding to the payment request in the C1_​PAY_​REQ table. Finally, the status of the payment request is changed to Distributed.