Credit card prompt with validation and address lookup
$ npm install --save credit-card-prompt
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.
Returns a promise
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.
MIT © Bu Kinoshita