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
)
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 Refund Sample
This sample code demonstrate how you can record an invoice as refunded.