shatran / card-react

React component for card https://github.com/jessepollak/card
MIT License
133 stars 65 forks source link

Using with stripe.js #25

Open bkrall opened 7 years ago

bkrall commented 7 years ago

Hey there! Possibly covered in another issue, but I'm not seeing it.

https://stripe.com/docs/custom-form#step-1-collecting-credit-card-information

The HTML is fairly standard, but note how every input for sensitive data—number, CVC, expiration, and ZIP code—omits the name attribute. By omitting a name, the user-supplied data in those fields won't be passed to your server when the form is submitted. Each element also includes a data-stripe attribute

Is it possible to use card-react without using name attributes?

bkrall commented 7 years ago

Realized the card repo already addressed this: https://github.com/jessepollak/card/issues/261

bkrall commented 7 years ago

Ah, actually it doesn't look like formSelectors are supported on this project.