Skip to content

Commit

Permalink
🐛 add baseUrl to avoid IntegrationError https
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tokyo committed Sep 7, 2020
1 parent 8979319 commit 24d7185
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/StripeCheckout.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ const StripeCheckoutWebView = (props: Props) => {
/** Render the WebView holding the Stripe checkout flow */
return (
<WebView
/** pass baseUrl to avoid `IntegrationError: Live Stripe.js integrations must use HTTPS.` error https://github.com/react-native-community/react-native-webview/issues/1317 */
baseUrl=""
originWhitelist={['*']}
{...webViewProps}
source={{
Expand Down

0 comments on commit 24d7185

Please sign in to comment.