3.0.1 • Published 9 years ago
flatmarket-service v3.0.1
flatmarket-service
The core Flatmarket service.
Installation
npm install flatmarket-serviceUsage
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.