Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Pay not working in ionic capacitor app #350

Open
2 of 7 tasks
adeel399 opened this issue Apr 22, 2024 · 4 comments
Open
2 of 7 tasks

Google Pay not working in ionic capacitor app #350

adeel399 opened this issue Apr 22, 2024 · 4 comments

Comments

@adeel399
Copy link

Platform

  • Web
  • iOS
  • [ x] Android

Describe the bug
i am using ionic capacitor and want to integrate google pay using that plugin but as i click button to present google pay screen blinks and nothing happen no dialog for google pay form.
//variable.gradle
ext {
minSdkVersion = 26
compileSdkVersion = 34
targetSdkVersion = 33
androidxActivityVersion = '1.2.0'
androidxAppCompatVersion = '1.2.0'
androidxCoordinatorLayoutVersion = '1.1.0'
androidxCoreVersion = '1.3.2'
androidxFragmentVersion = '1.3.0'
junitVersion = '4.13.1'
androidxJunitVersion = '1.1.2'
androidxEspressoCoreVersion = '3.3.0'
cordovaAndroidVersion = '7.0.0'
stripeAndroidVersion = '20.41.0'
}

//below is buttons code

async createGooglePay() {

await Stripe.createGooglePay({
  paymentIntentClientSecret: "some payemnt intent",
  paymentSummaryItems: [
    {
      label: 'Product Name',
      amount: 1099.0,
    },
  ],
  merchantIdentifier: 'merchant.com.getcapacitor.stripe',
  countryCode: 'US',
  currency: 'USD',
});

}

async presentGooglePay() {
return Stripe.presentGooglePay();
}

To Reproduce

Expected behavior
it should display google pay form

Screenshots
WhatsApp Image 2024-04-22 at 16 27 50_0eb3575b

Additional context
Add any other context about the problem here.

Usage Product
If you adopt this plugin, please let us know which product you are using.

Product Name:
Product URL :
Using Function:

  • Payment Sheet / Payment Flow
  • Apple Pay
  • Google Pay
  • Identity (@capacitor-community/stripe-identity)
  • Terminal(@capacitor-community/stripe-terminal)
@adeel399
Copy link
Author

please let me know if i am doing wrong somthing

@adeel399
Copy link
Author

@rdlabo anyone please help

@adeel399
Copy link
Author

I came to know that it look like google pay luncher issue that blink but does not show on screen ,any fix

@rdlabo
Copy link
Member

rdlabo commented Aug 11, 2024

Sorry for the delay, most likely the settings in strings.xml and AndroidManifest.xml are wrong. Or you don't have Google Pay configured on your device.

First, check availability with Stripe.isGooglePayAvailable(). Documentation can be found here.
https://stripe.capacitorjs.jp/docs/google-pay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants