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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Google pay not working in Android #55

Open
akhilsanker opened this issue May 3, 2021 · 9 comments
Open

馃悰 Google pay not working in Android #55

akhilsanker opened this issue May 3, 2021 · 9 comments
Assignees
Labels
bug Something isn't working react-native-webview react-native-webview

Comments

@akhilsanker
Copy link

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
Copy link

Having same issue

@a-tokyo
Copy link
Owner

a-tokyo commented May 5, 2021

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 a-tokyo self-assigned this May 5, 2021
@a-tokyo a-tokyo added bug Something isn't working question Further information is requested labels May 5, 2021
@a-tokyo a-tokyo changed the title Google pay not working in Android 馃悰 Google pay not working in Android May 5, 2021
@hussainimdad004
Copy link

@a-tokyo yes it works on normal browser. even in mobile chrome browser

@a-tokyo
Copy link
Owner

a-tokyo commented May 5, 2021

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 a-tokyo added react-native-webview react-native-webview and removed question Further information is requested labels May 5, 2021
@a-tokyo
Copy link
Owner

a-tokyo commented May 7, 2021

@Qiuzhuang
Copy link

@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
Copy link

iconico commented Jan 14, 2022

Has there been any updates on this issue?

@akhilsanker
Copy link
Author

Hi @a-tokyo ,

Any update on this ?

Thanks

@a-tokyo
Copy link
Owner

a-tokyo commented Apr 11, 2022

Hi!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working react-native-webview react-native-webview
Projects
None yet
Development

No branches or pull requests

5 participants