Adds a payment to the invoice and reports the payment to the payment provider.
The addPayment()
function returns a Promise that resolves
when the specified payment is added to the invoice with the specified ID.
ID and version of the invoice.
The payment that should be added to the invoice.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.