Skip to content

Latest commit

 

History

History

flatmarket-service

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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.