Stripe integration for Parse
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data Update to mimic Parse's Stripe API implementation' Jun 18, 2014
lib Removes unused logs Jun 18, 2014
test Update to mimic Parse's Stripe API implementation' Jun 18, 2014
.DS_Store Update to mimic Parse's Stripe API implementation' Jun 18, 2014
CHANGELOG
Changes Created base API for Parse+Stripe integration Nov 27, 2012
LICENSE Update to mimic Parse's Stripe API implementation' Jun 18, 2014
README.md
VERSION Update to mimic Parse's Stripe API implementation' Jun 18, 2014
npm-debug.log
package.json Update to mimic Parse's Stripe API implementation' Jun 18, 2014

README.md

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