Create a PaymentDetail object, and fill in the required fields You can use the new way of injecting json directly to the object.
Record a payment on invoice object by calling the
recordPayment
method
on the Invoice class by passing a valid
notification object
(See bootstrap.php for more on ApiContext
)
Retrieve the invoice object by calling the
static get
method
on the Invoice class by passing a valid
Invoice ID
(See bootstrap.php for more on ApiContext
)
Record Payment Sample
This sample code demonstrate how you can record an invoice as paid.