author lvairamani
Load SDK configuration for the resource. This intialization code can be done as Init Servlet.
Call the method with a valid Payment ID
Retrieve the access token from OAuthTokenCredential by passing in ClientID and ClientSecret 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 payment object by calling the
static get
method
on the Payment class by passing a valid
AccessToken and Payment ID
GetPayment Sample
This sample code demonstrates how you can retrieve the details of a payment resource. API used: /v1/payments/payment/{payment-id}