Create a RefundDetail object, and fill in the required fields You can use the new way of injecting json directly to the object.
Record a refund on invoice object by calling the
recordRefund
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 Refund Sample
This sample code demonstrate how you can record an invoice as refunded.