author lvairamani
Load SDK configuration for the resource. This intialization code can be done as Init Servlet.
Call the method with a previously created Credit Card 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 CreditCard object by calling the
static get
method on the CreditCard class,
and pass the Access Token and CreditCard ID
GetCreditCard Sample
This sample code demonstrates how you retrieve a previously saved Credit Card using the 'vault' API. API used: GET /v1/vault/credit-card/{id}