addPayment( )


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.

Method Declaration
Copy
Method Parameters
idIdAndVersionRequired

ID and version of the invoice.


paymentPaymentRequired

The payment that should be added to the invoice.

Returns
Return Type:Promise<Response>
Was this helpful?
Yes
No