Stripe Mock Data
Stripe webhook & resource object data for mocking / testing purposes.
Install
$ npm install stripe-mock-data --save-dev
Features
- Quick access to entire dataset via
.collection
- Quick select of a specific version using constructor.
Versioning
Resource Object Builders
Webhook Data
Don't see your version? Open an issue, or start a pull request by forking.
Usage
Basic usage:
var StripeMockData = console
Access Specific Version:
var StripeMockData = var StripeVersion = '2015-10-01' // Access Versionvar StripeData = // View dataconsole
When attempting to access a version that doesn't exist, an error is thrown:
try StripeData = catch e console
Using resource object builders:
console.log(StripeData.resources.account({
id: 'cus_CUSTOM_ID' // overrides default parameters
}))
Todo
- Write tests (entry file, resource objects)
- Clean up older webhook objects of invalid identifiers
- Core for webhooks / resources, extend off core objects.
License
MIT © Nijiko Yonskai