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
Create a refund object indicating refund amount
A sale transaction. Create a Sale object with the given sale transaction id.
Refund the sale (See bootstrap.php for more on ApiContext)
ApiContext
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