score:-3
Also had the same problem and I just changed my browser and it worked!!! (Do not use google chrome or brave, use firefox or some other browser)
score:2
Please use const stripeClient = require('stripe')('sk_test*************')
score:3
I had a similar issue with the same error message.
What I tried to do is to use the key from process.env
variables, but it didn't work.
const Stripe = require('stripe');
const stripe = Stripe('sk_test_...');
This worked for me.
Source: stackoverflow.com
Related Query
- Stripe node.js - StripeAuthenticationError
- Stripe with Node throws Error 400: "Cannot read property 'sessions' of undefined"
- Redirecting User after Stripe Payment Node js
- Stripe Connect in Europe: Using Payment Intents to Charge Customers (React and Node js)
- React Enzyme find second (or nth) node
- Getting DOM node from React child element
- Check if variable is React node or array
- Unmounting React.js node
- In Relay, what role do the node interface and the global ID spec play?
- Node events.js:167 throw er; // Unhandled 'error' event
- proxy not working for react and node
- Trace: The node type SpreadProperty has been renamed to SpreadElement at Object.isSpreadProperty
- React DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node
- Jest: How to correctly mock a node module?
- How do you send images to node js with Axios?
- React tutorial - how do I start the node server for a reactJs application?
- Node error Cannot read property 'resolve' of undefined
- Node + React - Hyphenated CSS Class Names
- Should I use ref or findDOMNode to get react root dom node of an element?
- how to check the actual DOM node using react enzyme
- Node Error: resolve-url-loader: CSS error
- Removing an item causes React to remove the last DOM node instead of the one associated with that item
- Different main entry point in package.json for node and browser
- Write to a text or JSON file in react with node
- How to implement Stripe with React Native?
- How correctly pass a node from a ref to a context?
- Pass props from template into react.js root node
- Node Sass version 6.0.0 is incompatible with ^4.0.0 || ^5.0.0 in React.js
- Stripe custom form with Reactjs
- React js Stripe checkout is not working
More Query from same tag
- Using Map in React with firebase
- getStaticProps returning undefined in Nextjs
- data.json is not a function reactjs using Fetch API
- How to scroll with mouse wheel and keyboard on vertical slider in echarts?
- push Async data to an array react
- How to fix Flow error when accessing a field with default value on an object?
- How to use better-sqlite3 with electron-react-boilerplate
- Async call to API within map function (React)
- What is the equivalent of this way of looping over an object in React
- asyncBlurFields not working in Redux-Form
- React I want to add text to the react-chart-2 tooltip
- Webpack: Need an appropriate loader to handle this file type error
- react hook useState can not store json or string
- Is there a way to make a dynamic text area in react
- axios.get function in ComponentDidMount not setting state as expected
- How to fix that eslint complain about typescript's path aliasing
- React onClick taking an extra click to change state
- How can I use props to auto-populate editable redux-form fields in React?
- How can I remove markers from the map using the checkboxes on the left?
- node js POST not getting data using React
- React/Next app keeps giving me an error about missing prerender-manifest.json
- React - history.push redirect not working
- Webpack & React. Loaded image can't resolve path 404
- Refresh leaflet map in react
- Defining a javascript class Method as a constant
- How to store token in react
- Jest/Enzyme React branches
- How to render default image before rendering the actual image in react js?
- unchecking checkbox in reactjs is not working
- Table not included in parent transaction - Dexie