author lvairamani
Load SDK configuration for the resource. This intialization code can be done as Init Servlet.
Retrieve the access token from OAuthTokenCredential by passing in It is not mandatory to generate Access Token on a per call basis. Typically the access token can be generated once and reused within the expiry window
Retrieve the PaymentHistory object by calling the
static get
method
on the Payment class, and pass the
AccessToken and a ContainerMap object that contains
query parameters for paginations and filtering.
Refer the API documentation
for valid values for keys
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