react-native-stripe-checkout-webview icon indicating copy to clipboard operation
react-native-stripe-checkout-webview copied to clipboard

🐛 Google pay not working in Android

Open akhilsanker opened this issue 4 years ago • 9 comments

Google pay is not working in android device. I have tried react-native-webview/react-native-webview#920 (comment) this solution but no effect in android.

Stripe preview is working well in chrome with in the same android device. Is there anything I am missing, even from Stripe dashboard.

Please find my code below:

<StripeCheckout
stripePublicKey={STRIPE_PUBLISH_KEY.PUBLISH_KEY}
checkoutSessionInput={{
  sessionId: checkoutId
}}
onSuccess={() => {
  paymentSuccess();
}}
onCancel={() => {
  navigation.goBack();
}}
options={{
  htmlContentLoading: '',
  htmlContentHead: ''
}}
renderOnComplete={() => <></>}
onNavigationStateChange={() => {
  setIsPaymentSuccess(true);
}}
/>

Versions using: react-native: 0.64.0 react-native-webview: 11.0.3 react-native-stripe-checkout-webview": 0.0.12,

Thanks

akhilsanker avatar May 03 '21 05:05 akhilsanker

Having same issue

hussainimdad004 avatar May 05 '21 19:05 hussainimdad004

Does Google Pay work on normal chrome on Android?

Can you please check if it works on chrome and firefox? If so, we should debug react-native-webview maybe try a different user agent

a-tokyo avatar May 05 '21 20:05 a-tokyo

@A-Tokyo yes it works on normal browser. even in mobile chrome browser

hussainimdad004 avatar May 05 '21 20:05 hussainimdad004

I see this is an issue with react-native-webview

  • https://github.com/react-native-webview/react-native-webview/issues/1976
  • https://stackoverflow.com/questions/66003027/react-native-webview-stripe-google-pay

I think we should discuss there as the fix needs to be done from webview's side

a-tokyo avatar May 05 '21 23:05 a-tokyo

@hussainimdad004 Check this out for apple pay https://github.com/react-native-webview/react-native-webview/issues/920#issuecomment-810866297

a-tokyo avatar May 07 '21 21:05 a-tokyo

@hussainimdad004 Check this out for apple pay react-native-webview/react-native-webview#920 (comment)

This seems to fix ios apple pay but not android google pay. Can we update the doc and file new issue for android side?

Qiuzhuang avatar Sep 13 '21 04:09 Qiuzhuang

Has there been any updates on this issue?

iconico avatar Jan 14 '22 18:01 iconico

Hi @A-Tokyo ,

Any update on this ?

Thanks

akhilsanker avatar Apr 11 '22 10:04 akhilsanker

Hi!

We're still waiting on react-native-web-view https://github.com/react-native-webview/react-native-webview/issues/1976 There's also a bounty on SF https://stackoverflow.com/questions/66003027/react-native-webview-stripe-google-pay

a-tokyo avatar Apr 11 '22 12:04 a-tokyo