3.0.1 • Published 9 years ago
flatmarket-client v3.0.1
flatmarket-client
A browser client for Flatmarket.
Installation
npm install flatmarket-clientUsage
var flatmarket = require('flatmarket-client').create({
host: 'your-flatmarket-server.com',
})
flatmarket.getStatus()
.then(function (status) {})
.caught(function (err) {})API Reference
Client.create(options)
Creates the client.
var client = Client.create(options)options Object
hostStringThe host. Required.
pathnameStringThe pathname. Default
'/'.
Client Instance Methods
client.createCharge(options)
Creates the charge.
client.createCharge(options)
.then(function (payload) {})options Object
emailStringThe email. Required.
metadataObjectMetadata about the charge. Default
undefined.skuStringThe SKU. Should correspond to a key in the Products Object. Required.
tokenStringThe Stripe token. Required.
License
See LICENSE.
3.0.1
9 years ago
3.0.0-beta.3
9 years ago
3.0.0-beta.2
9 years ago
3.0.0-beta.1
9 years ago
1.1.1
10 years ago
1.1.0
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago
0.0.0
10 years ago