3.0.1 • Published 8 years ago

flatmarket-service v3.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

flatmarket-service

The core Flatmarket service.

Installation

npm install flatmarket-service

Usage

var handleRequest = require('flatmarket-service')(yourStripeSecretKey, yourSchemaUri)

handleRequest(payload).then(function (res) {})

createHandler()

createHandler(stripeSecretKey: string, schemaUri: string): (payload: object) => Promise

The shape of the payload object is specified in lib/validate.

License

See LICENSE.