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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to process paypal payment from within webview #3691

Open
umer-nazir02 opened this issue Jan 29, 2025 · 1 comment
Open

Unable to process paypal payment from within webview #3691

umer-nazir02 opened this issue Jan 29, 2025 · 1 comment

Comments

@umer-nazir02
Copy link

Bug description:
Unable to login into Paypal for secure checkout. (Login button do not work)

To Reproduce:
try to checkout on any site using paypal inside webview

My webview config

   const customUserAgent = DeviceInfo.getUserAgentSync();

    <WebView
      ref={webViewRef}
      source={{uri: url || BASE_URL}} // Use the url prop or fallback to google
      style={styles.webview}
      onNavigationStateChange={(e: WebViewNavigation) => {
        setWebViewState(e);
      }}
      onLoadEnd={handleLoadEnd}
      onError={handleLoadEnd}
      sharedCookiesEnabled={true}
      javaScriptEnabled={true}
      userAgent={customUserAgent}
      thirdPartyCookiesEnabled={true}
      javaScriptCanOpenWindowsAutomatically
      setSupportMultipleWindows={true}
      cacheEnabled={true}
      domStorageEnabled={true}
      cacheMode={'LOAD_DEFAULT'}
      originWhitelist={['*']}
      onShouldStartLoadWithRequest={openExternalLink}
      onMessage={webViewMessages}
    />

Expected behavior:
It should let us securely login into paypal for checkout

Screenshots/Videos:

Image

Environment:

  • OS: Android
  • OS version: 15
  • react-native version: 0.76.3
  • react-native-webview version: 13.12.4
@umer-nazir02 umer-nazir02 changed the title Unable to Process Paypal payment from within webview Unable to process paypal payment from within webview Jan 29, 2025
@umer-nazir02
Copy link
Author

I have also reached out to PayPal support and followed their recommended actions, but I am still experiencing the issue.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant