🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

stripe-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stripe-cli

A handful tool to create fake dataset for Stripe

0.1.0
latest
Source
npm
Version published
Weekly downloads
1.1K
22.06%
Maintainers
1
Weekly downloads
 
Created
Source

Stripe Generator

Generate a full set of Stripe fake data from command line

About

Installation

npm i -g stripe-cli

or if you love yarn

yarn global add stripe-cli

Setup

You need to provide your Stripe private key or a resticted key thought a .striperc or stripe.config.json file in the directory you'll run the CLI app with this scheme :

{
	"stripe_key": "pk_test_*******"
}

⚠️ Warning : The program will raise an exception if you try to give an live key, this tool is intented to generate FAKE DATASETS

✅ Pro tip : You can use one config file per project as it's a common practice to have separate Stripe accounts for separate projects

Usage

Start by using, you'll see all commands available and options

$ stripe --help

Available commands

Here's some of available commands and few of their options

Create customer

$ stripe create customer[s] --nationality=fr --attach-card

Create charge

$ stripe create charge --customer=cus_XXXXXXX --amount=15000 --currency=EUR --token=tok_visa

Create payout

$ stripe create payout --account=acct_XXXXXXX --amount=100000 --currency=USD

Contributing

See CONTRIBUTING.md

Licence

See LICENCE.md

Maintainers

Clément SAUVAGE

Credit

The stripe generator icon was made by my good friend Vicent a.k.a Webalys

Keywords

payement

FAQs

Package last updated on 29 Jul 2019

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