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.
See Configuration.cs to know more about APIContext.
A refund transaction. Use the amount to create a refund object
Create a Sale object with the given sale transaction id.
Refund by posting Refund object using a valid APIContext
For more information, please visit PayPal Developer REST API Reference.
SaleRefund 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