0

I would like to know if anybody has some experience with the google wallet?

It is possible to store tickets with a barcode (e.g. QR-code) so that you show the code, it can be scanned and veryfied.

Now google offers a nice feature to secure the QR-code by implementing a TOTP in it.

https://developers.google.com/wallet/retail/loyalty-cards/rest/v1/RotatingBarcode

My question is, if it is possible to have an URL encoded into that QR-code like so:

    https://example.com/code-to-be-variefied-with-totp

The JSON code for the rotating barcode is as follows:

{
  "type": enum (BarcodeType),
  "renderEncoding": enum (BarcodeRenderEncoding),
  "valuePattern": string,
  "totpDetails": {
    object (TotpDetails)
  },
  "alternateText": string,
  "showCodeText": {
    object (LocalizedString)
  }
}

I assume that the valuePattern could be used for that since it says:

String encoded barcode value. This string supports the following substitutions: * {totp_value_n}: Replaced with the TOTP value (see TotpDetails.parameters). * {totp_timestamp_millis}: Replaced with the timestamp (millis since epoch) at which the barcode was generated. * {totp_timestamp_seconds}: Replaced with the timestamp (seconds since epoch) at which the barcode was generated.

I just would like to know if anybody has experience here and could answer that question.

Many thanks

Kev

Kev
  • 557
  • 1
  • 7
  • 26

0 Answers0