Simple NodeJS helper tool to perform some actions on Stripe Accounts, for testing purposes.
First clone and install dependencies:
$ git clone git@github.com:orlando-homer/stripe-helper.git
$ cd stripe-helper
$ npm install
$ export STRIPE_SECRET=stripe_account_seccret
To use it:
$ npm start [command][..opts]
The avaible commands are:
getSubscriptionsByPlanName [planName] [gte] [lte] [outputfile]
=> Requires Postgres variablescreatePaymentMethod
getPaymentMethod [id]
detachPaymentMethod [id]
attachPaymentMethod [id] [customer]
cancelSubscription [id]
getSubscription [id]
oneTimePayment [planId] [customer]
createCustomer [email]
delCustomer [id]
getCustomer [id]
getBalance
help [command]