ligi / PassAndroid

Android App to view passes
GNU General Public License v3.0
802 stars 135 forks source link

Support Google Pay API for Passes #223

Open simontb opened 5 years ago

simontb commented 5 years ago

Just saw that Google Pay now also supports various kinds of passes: https://developers.google.com/pay/passes

If possible PassAndroid should support to add passes from these links as well. I already did some investigations and passes are added to the Google Pay wallet with a JWT in a link. It should be possible to parse these JWTs. If additional information is stored on the Google servers already I don't know if we'll be able to retrieve them as well.

andrewshadura commented 2 years ago

My understanding is that the most important information is indeed stored on Google’s servers, and it not in the JWT. I’m not sure Google provides API access to the data of the pass.

gilcu3 commented 8 months ago

Recently I found this https://github.com/google-wallet/pass-converter, so it seems this feature should be possible? On android many apps only offer Wallet pass, and not pkpass, even when they support it, therefore converting seems to be the only possible solution.