rbii-incorporated / stripe_native

Flutter plugin that facilitates Apple & Google Pay through Stripe.
MIT License
11 stars 8 forks source link

Check Google Pay supported #9

Open Uraskin opened 4 years ago

Uraskin commented 4 years ago

How to check, that Google Pay is supported?

palcodes commented 4 years ago

There's a boolean value returned by StripeNative.nativePayReady. Maybe try that.

edlea commented 3 years ago

StripeNative.nativePayReady just checks the library is configured correctly:

  static bool get nativePayReady =>
      merchantIdentifier.isNotEmpty && publishableKey.isNotEmpty;
palcodes commented 3 years ago

Hey, that's right. I was working with this library, but wasn't able to move to production due to some issues on the iOS side. It never popped up the Apple Pay sheet. Ended up switching to, stripe_payment