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.
Specify a Payment ID to retrieve. For demonstration purposes, we'll be using a previously-executed payment that used a PayPal account.
Retrieve the details of the payment.
For more information, please visit PayPal Developer REST API Reference.
GetPayment Sample
This sample code demonstrates how you can retrieve the details of a payment resource. API used: /v1/payments/payment/{payment-i