a-tokyo / react-native-stripe-checkout-webview

💰 React Native implementation for Stripe.js Checkout.
https://stripe.com/payments/checkout
MIT License
73 stars 18 forks source link

🐛 Google pay not working in Android #55

Open akhilsanker opened 3 years ago

akhilsanker commented 3 years ago

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

hussainimdad004 commented 3 years ago

Having same issue

a-tokyo commented 3 years ago

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

hussainimdad004 commented 3 years ago

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

a-tokyo commented 3 years ago

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

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

a-tokyo commented 3 years ago

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

Qiuzhuang commented 3 years ago

@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?

iconico commented 2 years ago

Has there been any updates on this issue?

akhilsanker commented 2 years ago

Hi @A-Tokyo ,

Any update on this ?

Thanks

a-tokyo commented 2 years ago

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