#Nixon - tokens
1 messages · Page 1 of 1 (latest)
Hello, I am less familiar with that flow but am catching up. Can you send me the code around your listTokens call?
tapAndPayClient.listTokens().addOnCompleteListener { task -> if (task.isSuccessful) { Log.d("Zivi", "listTokens ${task.result}") // Next: look up token ids for the active wallet // This typically involves network calls to a server with knowledge // of wallets and tokens. } else { if ((task.exception as ApiException).statusCode == TAP_AND_PAY_NO_ACTIVE_WALLET) { Log.e("Zivi", "listTokens \"There is no wallet. A wallet will be created when tokenize() or pushTokenize() is called.If necessary, you can call createWallet() to create a walleteagerly before constructing an OPC (Opaque Payment Card)to pass into pushTokenize()\"") } } }
val tapAndPayClient = TapAndPay.getClient(this)
listTokens() returns a Successful empty array
Even though the card is in the digital wallet.
This is from the documentation here: https://developers.google.com/pay/issuers/apis/push-provisioning/android/reading-wallet#listtokens
and here https://stripe.com/docs/issuing/cards/digital-wallets
Yes, but it is mentioned in the stripe docs
Definitely, I was more reacting to realizing why I wasn't seeing that call as part of our API reference. (probably didn't need to do it out loud)
Checking in to this. Honestly if the Stripe code worked but the google call isn't returning as expected, this may be a better question for Google's support/forums. Checking in to our guidance here though
Unfortunately I am not finding much more on this on our side. If the Stripe calls seem to be returning as expected otherwise, I would go to Google for debugging help on their side of the list tokens call