Comments (5)
This indeed should be enough to show the button and I suspect the issue is not with the React Stripe.js. I do not think TS types are an issue here. Are you serving your demo over https somehow?
from react-stripe-js.
Testing has taken place on localhost with a dev stripe key, so no. What effect would that have?
from react-stripe-js.
The underlying wallets/payment handlers that we use have an HTTPS requirement. Can you try serving over https with something like ngrok?
There is a bit more detail about how to get the button to show up here:
https://stripe.com/docs/stripe-js/elements/payment-request-button#html-js-prerequisites
This doc does not yet have React specific content, but the "Prerequisites" section should still apply.
from react-stripe-js.
Yup, that solved it. I missed that bullet point, was spending too much time digging through the new library. Thanks for the help!
from react-stripe-js.
👍
from react-stripe-js.
Related Issues (20)
- [BUG]: googlepay integration in stripe HOT 1
- Support for stripe-mock to test donations locally
- Unable to disable express checkout setting address with publishable key HOT 1
- [BUG]: Unable to import useEmbeddedCheckoutContext HOT 8
- Express checkout apple pay element won't update to a higher price in onShippingAddressChange HOT 5
- [BUG]: Why are secrets exposed in the front end? HOT 2
- [BUG]: 3d secure 2 error from confirmSetup HOT 5
- [BUG]: Invalid attribute on card number input in terms of accessibility HOT 2
- Declared peer dependency forbids latest version of @stripe/[email protected] HOT 1
- [BUG]: Autofill with select password managers breaks PaymentElement component HOT 3
- [BUG]: Need to not be able submit a form with Return Key HOT 2
- [BUG]: 3DS Challenge popup appearing below google pay popup HOT 3
- [BUG]: The "Google Pay" button in ExpressCheckout isn't read correctly by screen readers HOT 2
- [BUG]: customerOptions prop on Elements says you need beta permissions but there is no other option. HOT 2
- [BUG]: "City" input does not show up when selecting Japan as a country HOT 1
- [BUG]: Accessibility issues with buttons from the Express Checkout Element HOT 1
- [BUG]: Cannot change colorText for Block text HOT 4
- Stripe+AliPayment Next Action url doesn't work on mobile browser with live mode HOT 2
- [BUG]:
- [BUG]: Crash with "Error: Unknown country code: SD" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-stripe-js.