Skip to content
R

react-payment-inputs

A React Hook & Container to help with payment card input fields

by medipassOpen source

#1299in UI Libraries
0In stores

Description

React Payment Inputs is a React hook and container that helps you build the card number, expiry date, security code and ZIP fields of a paym…

Highlights

  • React hook with prop getters for each card field
  • Detects card type and reports field errors
  • Custom validators and error messages
  • Built-in styled wrapper or your own design
  • Works with Formik and React Final Form

Ratings & Reviews

No ratings yet

Be the first to rate react-payment-inputs.

People also visit

R

react-payment-inputs

A zero-dependency React Hook & Container to help with payment card input fields

UI Libraries
Launch
R

react-credit-cards

Beautiful credit cards for your payment forms

UI Libraries
Launch
R

react-credit-cards-2

Beautiful credit cards for your payment forms

UI Libraries
Launch
R

react-input-mask

Input masking component for React. Made with attention to UX

UI Libraries
Launch
R

react-svg-credit-card-payment-icons

React components library with 6 styles, 108 icons, TypeScript support

UI Libraries
Launch
R

react-maskedinput

Masked <input/> React component

UI Libraries
Launch

react-payment-inputs FAQ

What is React Payment Inputs?

A React hook and container for the card number, expiry date, CVC and ZIP fields of a payment form.

Does it come with styles?

Not by default. You can style the fields yourself, or use the built-in styled wrapper described in the README.

Which React version do I need?

React 16.8 or newer, because the hook version uses hooks.

Can I use it with my form library?

Yes. The README has examples for Formik and React Final Form, along with examples for Fannypack and Bootstrap.

What are the best react-payment-inputs alternatives?

Popular alternatives to react-payment-inputs include react-payment-inputs, react-credit-cards and react-credit-cards-2. See all react-payment-inputs alternatives

Developer Stuff

Badges