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
)
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
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
)
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
Record Payment Sample
This sample code demonstrate how you can record an invoice as paid.