Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

144
Visualizações
Google Pay Passes deep link to the pass - React native

I am trying to deep-link to a specific Google Pay pass on the Google pay app. For example, if the user taps on a link, they should be directly be redirected to pass installed on their Google Pay app.

Similarly I would also like to check if the pass is installed or not their phone and if the Google Pay app is installed on the phone as well.

This is all through React Native. Any kind of help or information is appreciated! Thanks.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

Check if user has removed pass

GET https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/objectId Source: https://developers.google.com/pay/passes/guides/implement-the-api/engage-users-through-google-pay?hl=en#determine-if-user-removed

Link to specific pass https://pay.google.com/gp/v/object/{}.{} Source: https://developers.google.com/pay/passes/guides/pass-verticals/use-cases?vertical=loyalty#link-to-saved-pass

about 4 years ago · Juan Pablo Isaza Relatório

0

I'm not familiar with React Native so I can't give you React Native specific answers but you may be able to adapt the following answers for React Native.

I am trying to deep-link to a specific Google Pay pass on the Google pay app. For example, if the user taps on a link, they should be directly be redirected to pass installed on their Google Pay app.

Similarly I would also like to check if the pass is installed or not their phone and if the Google Pay app is installed on the phone as well.

You can achieve this with a Save to Google Pay link and launching an intent with the save URI. See example:

activityBinding.content.saveButton.setOnClickListener {
  val uri = Uri.parse("https://pay.google.com/gp/v/save/$jwt")
  val intent = Intent(Intent.ACTION_VIEW, uri)
  startActivity(intent)
}

The handling of the intent typically has the following behaviors:

  • If Google Pay is available on the device, it can launch Google Pay
    • If the pass is already saved, it will show that the pass has already been saved with an option to remove or to view the pass
    • If the pass hasn't been saved, it will save it with the option to remove or view the pass
  • If Google Pay isn't available, it will open the link in a browser with similar saved/unsaved behavior above.

Using this approach you don't technically need to check to see if the pass has been saved, or if Google Pay is available. Note that passes can be saved even if the Google Pay app isn't installed.

If you'd like more information on how to generate a jwt, refer to https://developers.google.com/pay/passes/guides/implement-the-api/save-passes-to-google-pay?hl=en&feed=email-sms#generate-jwt-that-represents-object

There's also a Codelab available if you'd like a step by step guide which includes code samples on creating jwt with a nodejs backend.


If you must check to see if Google Pay is installed, you should be able to query it using this answer: https://stackoverflow.com/a/18752247/12031739

Note that the Google Pay package name may vary depending on region of the world you are in so you'll want to check which package name applies to you.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda