GithubHelp home page GithubHelp logo

Comments (1)

SeanCassiere avatar SeanCassiere commented on May 25, 2024

Not sure what you are trying to achieve, since Stripe elements give their own components to use on a payment screen. I currently, do not have a proper repo set up with the correct client-server integration, but you could do the following.

If you have Stripe system set up, with the correct integrations on the server and the client, then you could see if you are able to the onChange or possibly even target the input elements using a ref. Then you may be able to get the card_number, card_expiry, and the card_cvv, to show it in the react-credit-cards component.

https://stripe.com/docs/js/element/events/on_change?type=paymentElement
https://stripe.com/docs/payments/accept-card-payments?platform=web&ui=elements&html-or-react=react

One important thing to remember though is that this may be a bit more difficult since the purpose of Stripe Elements is to provide a secured tokenized form for a customer to enter their payment details.

Stripe.js tokenizes sensitive payment details within an Element without ever having them touch your server.

from react-credit-cards.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.