flovilmart / parse-stripe

Stripe integration for Parse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse/Stripe node.js bindings

Installation

You should use only that module through parse-develop local environment

npm install parse-develop

Documentation

Documentation is available at https://stripe.com/docs/api/node.

API Overview

Every resource is accessed via your stripe instance:

var Stripe = require("stripe");
Stripe.initialize('YOUR API KEY');
// Stripe.{ RESOURCE_NAME }.{ METHOD_NAME }

Every resource method returns a promise, so you don't have to use a regular callback. E.g.

// Create a new customer and then a new charge for that customer:
Stripe.Customers.create({
  email: 'foo-customer@example.com'
}).then(function(customer) {
  return Stripe.Charges.create({
    amount: 1600,
    currency: 'usd',
    customer: customer.id
  });
}).then(function(charge) {
  // New charge created on a new customer
}, function(err) {
  // Deal with an error
});

Available resources & methods

Where you see params it is a plain JavaScript object, e.g. { email: 'foo@example.com' }

More information / wikis

Author

Originally by Stripe and Ask Bjørn Hansen (ask@develooper.com). Development was sponsored by YellowBot. Unofficial port from Stripe to Parse

About

Stripe integration for Parse

License:MIT License


Languages

Language:JavaScript 100.0%