Create a refund object indicating refund amount
A sale transaction. Create a Sale object with the given sale transaction id.
Pass in a ApiContext
object to authenticate
the call and to send a unique request id
(that ensures idempotency). The SDK generates
a request id if you do not pass one explicitly.
Refund the sale
Sale Refund Sample
This sample code demonstrate how you can process a refund on a sale transaction created using the Payments API. API used: /v1/payments/sale/{sale-id}/refund