GreenPassApp / greenpass-app

https://greenpassapp.eu
GNU General Public License v3.0
96 stars 7 forks source link

Add Google Pay support #30

Open sneps85 opened 3 years ago

sneps85 commented 3 years ago

As for Apple wallet, it would be nice to have the Green Pass also inside Google Pay for faster access. Is that possible?

JakobStadlhuber commented 3 years ago

Interesting idea do you know if Google Pay accept .pass formats?

djohannes commented 3 years ago

Interesting idea do you know if Google Pay accept .pass formats?

No, it doesn't. Simply put you have to upload the pass to Google's servers which is a complicated process, and I could only find one other app that offers that: https://forum.xda-developers.com/t/app-5-0-tools-pass2pay-add-your-pkpass-or-pdf-passes-to-google-pay.3952721/ (not open source)

usamedev commented 3 years ago

The Google Pay API for Passes provides a secure way to store and access COVID vaccination and test cards on Android-powered devices. To be eligible to use these passes, you must be a healthcare organization, government agency, or an organization authorized by public health authorities to distribute COVID vaccines or tests.

https://developers.google.com/pay/passes/guides/pass-verticals/use-cases?vertical=covid-cards#pass-vertical

DRSchlaubi commented 2 years ago

Interesting idea do you know if Google Pay accept .pass formats? No, it doesn't and Pass2Pay is an app which can do that as @djohannes mentioned, however the app is cluttered with ads, and it doesn't support covid cards itself

As @usamedev mentioned, Google added an official API especially for this use case; however, it is only accessible by official organizations can request access to it, so I can't make an app myself or PR to anyone else. That provides additional benefits of displaying more vaccination related information on the card and it being protected by the device's display lock

However, you need to get approved access by following this guide to get this going

DRSchlaubi commented 2 years ago

I/O just introduced a new API for this not requiring a backend server, I will take a deeper look later

edit: looks like the vaccination apis are locked for authorized agencies only: https://developers.google.com/wallet/health/vaccine-cards

DRSchlaubi commented 2 years ago

Interesting idea do you know if Google Pay accept .pass formats?

It now does, you can find affordable documentation here and here, you only need to be verified in order to brand your passes