ReactCardPayment
Awesome credit card payment form
Installation
npm install --save react-card-payment
Usage
with Webpack or Rollup
;
then, place this one in a place you want payment form to appear
Properties
Labels
Prop | Data type | Default |
---|---|---|
labelCardnumber | string | Card number |
labelMonth | string | Month |
labelYear | string | Year |
labelCardHolder | string | Cardholder name |
button | string | Pay |
Placeholders
Prop | Data type | Default |
---|---|---|
placeholderCardnumber | string | 0000 0000 0000 0000 |
placeholderMonth | string | 00 |
placeholderYear | string | 00 |
placeholderCardHolder | string | JOHN DOE |
placeholderCvv | string | 000 |
Events
Event | Description |
---|---|
onSubmit | fires when form is submitted |
Example with settings
Thanks
iserdmi for card-info plugin, this plugin is primary-based on it braintree for card-validator plugin, this one used here for validation needs