Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "payment", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"main": "lib/payment.js" | ||
} |
{ | ||
"name": "payment", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A general purpose library for building credit card forms, validating inputs and formatting numbers. Base on jquery.payment by @stripe, but without the jQuery.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
{ | ||
"name": "payment", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"title": "payment", | ||
@@ -5,0 +5,0 @@ "description": "A general purpose library for building credit card forms, validating inputs and formatting numbers. Base on jquery.payment by @stripe, but without the jQuery.", |
@@ -169,2 +169,22 @@ # Payment [![Build Status](https://travis-ci.org/jessepollak/payment.svg?branch=master)](https://travis-ci.org/jessepollak/payment) | ||
## Card Type functions | ||
We've provided utility functions to change which card types can be identified by Payment. | ||
### Payment.getCardArray() | ||
Returns the array of card types. | ||
### Payment.setCardArray(cardTypes) | ||
Overrides the array of card types with a new array. | ||
### Payment.addToCardArray(cardType) | ||
Add a new card type to the card array. | ||
### Payment.removeFromCardArray(cardName) | ||
Remove a card type from the card array. | ||
## Example | ||
@@ -171,0 +191,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141398
229