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 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
Pass an AccessToken and the ID of the sale transaction from your payment resource.
Get Details of a Sale Transaction Sample
This sample code demonstrates how you can retrieve details of completed Sale Transaction. API used: /v1/payments/sale/{sale-id}