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

any way to use stripe 3 without all the ui of this library? with just simple fields like in v2 #19

ttaranov opened this Issue Jun 3, 2017 · 8 comments


None yet
8 participants

ttaranov commented Jun 3, 2017

This library adds quite a bit of overhead to a react app - but I do still want to use Stripe directly in React app. Documentation on is not clear and refers a lot to various css styling issues to create a 'card' before creating a token.

In other words, I'd like something like the following:

  1. npm install stripe --save
  2. import stripe;
  3. stripe(mykey).createToken({cc:ccVal,exp:expVal,cvc:cvcVal}).then(...)

how do I do this? (without reverting to stripe v2)


This comment has been minimized.


jenan-stripe commented Jun 5, 2017

Hi @ttaranov! You can't access the card information directly for security reasons in the latest version of Stripe.js. If there's something specific from Elements or Stripe.js that you need, please write in to support: -- thanks!


This comment has been minimized.

ttaranov commented Jun 5, 2017

I guess I'll then stay on v2 - it works fine with react apps I need... thanks!

@jez jez added the support label Mar 2, 2018


This comment has been minimized.

Lehakos commented May 3, 2018

Can you add ability to choose custom component for elements? Like how is this done in the redux-form


This comment has been minimized.

suprMax commented Jul 9, 2018

is there a link to v2 documentation somewhere? i would prefer to use least amount of 3rd party code possible


This comment has been minimized.


atty-stripe commented Jul 9, 2018

To expand on Jenan's comment above, using Stripe.js v2 will subject you to PCI SAQ A-EP level compliance, which requires you to upload your A-EP form to Stripe to verify compliance (usually a good amount of work.)

To maintain the simplest level of PCI compliance, Elements renders form inputs within iframes, while allowing complete customization using Stripe.js v3 APIs. As such, we highly recommend you use Stripe.js v3 and Elements to build your credit card form.

You can learn more about the different levels of PCI compliance on our integration security guide.

If you're aware of the requirements and would like to use v2, here's a link to the docs.


This comment has been minimized.

farahabdi commented Nov 13, 2018

@atty-stripe thanks for the info, but I really don't want to use your elements. They are pretty good for instant integration but awful when you need a very specific look and feel.


This comment has been minimized.

suprMax commented Nov 13, 2018

I'm personally more concerned about the tracking that tends to persist across all visited pages. I would like to remove that but it seems there is no way of doing so. It's more of a stripe v3 thing in general though


This comment has been minimized.

fred-stripe commented Nov 13, 2018

Hi, @farahabdi! We've designed Elements to be as flexible as possible for custom styles while balancing strict PCI requirements for handling sensitive card information. I'd recommend taking a look at the official Elements Examples, which has a variety examples of customization using the style property of each Element. If you are having difficulty achieving a specific style, would be happy to help!

@suprMax what you've mentioned here is a part of Radar, which identifies anomalous device behavior in order to protect your business against fraudulent activity. I'd recommend contacting email support if you have any questions about this!

@stripe stripe locked as off topic and limited conversation to collaborators Nov 13, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.