Skip to content

grovelabs/meteor-stripe.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stripe.js for Meteor

####Stripe - Payment infrastructure for the Internet

This package includes Stripe.js for use on the client

Installation

meteor add grove:stripejs

Usage

The same as in the docs. Example for reference:

Stripe.setPublishableKey('YOUR_PUBLISHABLE_KEY');

To initiate a Stripe object:

var Stripe = StripeAPI('YOUR_SECRET_API_KEY');

And then use it:

Stripe.charges.create({
amount: 1000, // this is in cents, not dollars
currency: "USD",
card: {
  number: "4242424242424242", // this is the test number
  exp_month: "03",
  exp_year: "2014"
  }
}, function (error, result) {
  // Do something with the result
});

About

(DEPRECATED) Stripe.js packaged for Meteor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published