GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tuxado/payform: A general purpose JQuery library for building credit card forms, validating inputs, and formatting numbers.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
demo
demo
 
 
public
public
 
 
src
src
 
 
typings
typings
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

A general purpose library for building credit card forms, validating inputs, and formatting numbers.

How to use

    <script src="jquery.min.js"></script>
    <script src="imask.js"></script>
    <script src="payform.plugin.js"></script>
    <script>
      $(document).ready(function () {
        $(".payform").creditCard({
          form: {
            num: {
              selector: '[role="cc-num-field"]',
              mask: { separator: " " },
              icon: '[role="cc-num-field-icon"]',
            },
            name: {
              selector: '[role="cc-name-field"]',
            },
            expiry: {
              selector: '[role="cc-expiary-field"]',
            },
            cvc: { selector: '[role="cc-cvc-field"]' },
          },
          image: {
            card: '[role="cc-img-wrapper"]',
            informations: {
              num: '[role="cc-num-info"]',

              name: '[role="cc-name-info"]',
              expiry: '[role="cc-expiry-info"]',
              cvc: '[role="cc-cvc-info"]',
            },
          },
          error: {
            isInvalid: "is-invalid",

            subject: undefined,
          },
        });
      });
    </script>

1

2

About

A general purpose JQuery library for building credit card forms, validating inputs, and formatting numbers.

Topics

credit-cardimaskjsjavascriptjquerypayformpaymenttypescriptvalidation

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.