Bogdan
Bogdan

Reputation: 91

Google wallet add .pkpass file via url

"I'm using Ionic 6, capacitor with Angular. I'm trying to add a .pkpass wallet file to Google Wallet using their example. I encode the URL and after I make the call, I get this error: 'Something went wrong. Please try again. '.
If I have the .pkpass file on my phone and open it, it works perfectly."
If I paste the encoded completed URL directly in the browser, I get the same error. I don't get any specific error on Google's error page, just the message (Something went wrong. Please try again.)'

    async addToGoogleWallet(fileURL: string) {
        const encodedFileUrl = encodeURIComponent(fileURL);
        const googleWallet = `https://pay.google.com/gp/v/save/${encodedFileUrl}`;
        if (Capacitor.isNativePlatform()) {
          await Browser.open({ url: googleWallet });
      }

enter image description here

Upvotes: -1

Views: 36

Answers (0)

Related Questions