New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

credit-card-prompt

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

credit-card-prompt

Credit card prompt with validation and address lookup

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

credit-card-prompt Build Status

Credit card prompt with validation and address lookup

Install

$ npm install --save credit-card-prompt

Usage

const creditCardPrompt = require('credit-card-prompt')

creditCardPrompt()

/*
{
  name: 'Bu Kinoshita',
  number: 4242424242424242,
  cvc: 123,
  address_country: Canada,
  address_zip: MK63P6,
  address_state: Toronto,
  address_city: res.city,
  address_line1: res.address1,
  exp_month: expDateParts[0],
  exp_year: expDateParts[1]
}
*/

It uses add-billing from zeit under the hood with some changes.

Demo

API

creditCardPrompt(googleMapsKey)

Returns a promise

googleMapsKey

Type: string
Optional

If Google Maps API Key is set, it will lookup for user state and city using zip code.

  • npm-donate — Support maintainers with a donation and help them continue with activities.

License

MIT © Bu Kinoshita

Keywords

credit

FAQs

Package last updated on 16 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts