This sample code demonstrates how you can retrieve details of completed Sale Transaction. API used: /v1/payments/sale/{sale-id}
Pass in a OAuthTokenCredential object explicilty to authenticate the call. If you skip this step, the client id/secret set in the config file will be used.
OAuthTokenCredential
Pass the ID of the sale transaction from your payment resource.
Get Sale sample
This sample code demonstrates how you can retrieve details of completed Sale Transaction. API used: /v1/payments/sale/{sale-id}