Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEW API] Cards Get Token #57

Open
nahwinrajan opened this issue Mar 29, 2021 · 1 comment
Open

[NEW API] Cards Get Token #57

nahwinrajan opened this issue Mar 29, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@nahwinrajan
Copy link

In regards with cards new API and documentation update we will need new method of card.GetTokenParams on xendit-go client library.

This issue is request for it.

xendit.Opt.SecretKey = "xnd_development_P4qDfOss0OCpl8RtKrROHjaQYNCk9dN5lSfk+R1l9Wbe+rSiCwZ3jw=="
	
getTokenData := card.GetTokenParams{
  TokenID: "605c05d3f81fa60011b2fa4e",
}

tokenResp, err := card.GetToken(&getTokenData)
if err != nil {
  log.Fatal(err)
}

fmt.Printf("retrieved token: %+v\n", tokenResp)
@ianeinser
Copy link

In regards with cards new API and documentation update we will need new method of card.GetTokenParams on xendit-go client library.

This issue is request for it.

xendit.Opt.SecretKey = "xnd_development_P4qDfOss0OCpl8RtKrROHjaQYNCk9dN5lSfk+R1l9Wbe+rSiCwZ3jw=="
	
getTokenData := card.GetTokenParams{
  TokenID: "605c05d3f81fa60011b2fa4e",
}

tokenResp, err := card.GetToken(&getTokenData)
if err != nil {
  log.Fatal(err)
}

fmt.Printf("retrieved token: %+v\n", tokenResp)

Hi, how do you get token id using go? where can i find the documentation?

@luminto17 luminto17 added the enhancement New feature or request label Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants