Andreas1234
Andreas1234

Reputation: 698

Can I use frequently change code in Google Wallet?

So my task is to determine whether we can integrate Google Wallet or not.

Every user has a unique QR code, but this code changes every time. This code can change for example if the code expires, or the user uses it for the first time.

Our code generation process is also complicated, because it has a lot of secure parameter as well as some user inputs.

I watched the video about the implementation, but it seems, we can use it only just with a constant code, or otherwise I need to change the saved Passes object from my application.

Expected behavior would be, that the users set up the wallet from our application for the first time, but after that they should not use our application to get the fresh code.

So I don't know. Am I missed something, or it is not feasible?

Upvotes: 0

Views: 211

Answers (1)

xsrf
xsrf

Reputation: 664

You can update the users Pass via the Web API from your backend, without any interaction required by the user. See https://developers.google.com/wallet/reference/rest/v1/genericobject/patch for example. Also read https://developers.google.com/wallet/generic/resources/performance-tips

Just in case you can work with TOTP based codes, have a look at https://developers.google.com/wallet/generic/resources/rotating-barcodes

Upvotes: 1

Related Questions