Comments (3)
Hi @BrianSHenderson ,
The error sounds like babel configuration and using unrecognised javascript language features, likely a transpiler or polyfill issue, and not an issue for this repo. You're using es6 (and beyond) syntax, so it will not work in many browsers as-is.
Your line 34 example looks like where you would be defining the onToken method of your custom react component. It's hard to say what might be causing your issue without seeing it in a broader context - eg the complete component definition and transpiler (eg babel) config - and how you're trying to run it, but you should start with looking at which (if any) babel plugins you have configured.
One simple test you could do is to go to babeljs.io and test it:
https://babeljs.io/repl/#?evaluate=true&lineWrap=false&presets=es2015%2Creact%2Cstage-0&code=class%20MyClass%20{%0A%20%20onToken%20%3D%20%28token%29%20%3D%3E%20{}%0A}%0A
Turn off any presets you don't have (from right to left) and if you get an error, you know you need to add the appropriate preset/plugin to your build.
from react-stripe-checkout.
Many thanks, I'm running through Meteor which might be causing the problems. I'll take a look.
from react-stripe-checkout.
This issue doesn't seem related to this library, so I'm closing for now.
from react-stripe-checkout.
Related Issues (20)
- Publishable Key not Set onClick Pay Now
- Checkout Migration Guide HOT 1
- any plans for up and coming SCA? HOT 4
- How do I cancel my payment if an error occurs after another api call? HOT 1
- Accept ApplePay HOT 1
- Coupons and Discounts HOT 1
- How to open stripe-checkout programatically HOT 1
- Keep getting a CORS error when the checkout pop up opens
- How to configure Apple Pay & Google Pay? HOT 2
- Question: Can this support subscriptions? HOT 1
- How to fix migration and cookie associated with a cross-site warnings with react-stripe-checkout HOT 3
- StripeCheckout is returning the billing address on chrome desktop but not on mobile
- how to prevent pay with card button from submitting the form
- how to add image from our assets folder in to the image property for pop-in header image? HOT 1
- Extra locales
- open stripe form in page not in modal after click on pay HOT 1
- Migrating legacy version of Stripe Checkout to a newer version HOT 1
- 3D Secure Payments
- Typescript error when children are passed into the StripeCheckout component HOT 2
- Change API Version
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-checkout.