#itay-GooglePay
1 messages · Page 1 of 1 (latest)
Sorry, do you happen to know what version you are running on?
there is a similar issue in React Native https://github.com/stripe/stripe-react-native/pull/546
No this is React Native
Did you fixed it also on flutter sdk?
Also this fix is for return an error why should I get not available?
Um that's the latest one
sorry what?
So there is a similar issue which is fixed from 2.0.0. But yours are 2.5.0, right?...
yes
Could you share full file code?
final isGooglePaySupported = await Stripe.instance.isGooglePaySupported(
IsGooglePaySupportedParams(
testEnv: !FlavorManager.isProduction,
),
);
await Stripe.instance.initGooglePay(
const GooglePayInitParams(
merchantName: 'Faye',
countryCode: 'US',
testEnv: true,
isEmailRequired: false,
existingPaymentMethodRequired: false,
billingAddressConfig: BillingAddressConfig(
isPhoneNumberRequired: false,
isRequired: false,
format: BillingAddressFormat.FULL,
),
),
);
Is that ok
?
I am looking at it
nothing stands out to be potential issue. But how was isGooglePaySupported?
that works return true
I also can display the button but the init now working..
not
Ok, if you do this
const { error } = await initGooglePay
then print out the error how would it look like?
I am referencing here https://stripe.com/docs/google-pay?platform=react-native#react-native-init
Oh I see, sorry
no problem any suggestion?
Next attempt would be cloning this code: https://github.com/flutter-stripe/flutter_stripe/blob/main/example/lib/screens/wallets/google_pay_stripe_screen.dart
If this code doesn't work then it might be a problem with your device
Do you have a card registered in the device you are testing?
this is the first code i tried also doesn't work
My own device an yes i have a card registered
also using that Stripe.instance.createGooglePayPaymentMethod this one should be after the init right?
should be after
But your issue is your app stopped at init, right?
Without any error it is hard to diagnose
Can you try with a different device? Just to narrow down the issue?
I think i got something from android logcat
maybe it's not try to again if i am getting this error
oh sorry that not happen again
I tried two different device both getting the same
waiting the function to finish but never does
what can be the problem?