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.
Retrieve the PaymentHistory by calling the
static List
method
on the Payment resource, and pass the
APIContext and the map containing the query parameters
for paginations and filtering.
Refer the API documentation
for valid values for keys
For more information, please visit PayPal Developer REST API Reference.
GetPaymentList Sample
This sample code demonstrate how you can retrieve a list of all Payment resources you've created using the Payments API. Note: Various query parameters that you can use to filter, and paginate through the payments list. API used: GET /v1/payments/payments