Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

payment

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

payment - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

bower.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc