Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

flatmarket-client

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flatmarket-client

A browser client for Flatmarket.

latest
Source
npmnpm
Version
3.0.1
Version published
Maintainers
1
Created
Source

flatmarket-client

A browser client for Flatmarket.

Installation

npm install flatmarket-client

Usage

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
  • host String

    The host. Required.

  • pathname String

    The pathname. Default '/'.

Client Instance Methods

client.createCharge(options)

Creates the charge.

client.createCharge(options)
    .then(function (payload) {})
options Object
  • email String

    The email. Required.

  • metadata Object

    Metadata about the charge. Default undefined.

  • sku String

    The SKU. Should correspond to a key in the Products Object. Required.

  • token String

    The Stripe token. Required.

License

See LICENSE.

FAQs

Package last updated on 19 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts