Socket
Socket
Sign inDemoInstall

stripe

Package Overview
Dependencies
Maintainers
1
Versions
652
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stripe - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

11

lib/main.js

@@ -163,2 +163,5 @@ /* Copyright 2011 Ask Bjørn Hansen, see LICENSE */

get("/v1/plans", { count: count, offset: offset}, cb );
},
update: function (plan_id, data, cb) {
post("/v1/plans/" + plan_id, data, cb);
}

@@ -222,3 +225,11 @@ },

},
events: {
retrieve: function (token_id, cb) {
get("/v1/events/" + token_id, {}, cb)
},
list: function (cb) {
get("/v1/events/", {}, cb)
}
},
};
}

2

package.json

@@ -5,3 +5,3 @@ {

"description": "Stripe API wrapper",
"version": "1.1.0",
"version": "1.2.0",
"homepage": "https://github.com/abh/node-stripe",

@@ -8,0 +8,0 @@ "repository": {

@@ -49,2 +49,3 @@ # node-stripe

* `.retrieve(plan_id)` - [retrieve a plan](https://stripe.com/docs/api#retrieve_plan) by plan id.
* `.update(plan_id, data)` - [update plan](https://stripe.com/docs/api#update_plan)
* `.del(plan_id)` - [delete a plan](https://stripe.com/docs/api#delete_plan)

@@ -70,2 +71,5 @@ * `.list(count, offset)` - [list plans](https://stripe.com/docs/api#list_plans)

* `.retrieve(token_id)` - [retrieve a card token](https://stripe.com/docs/api#retrieve_token)
* `stripe.events` - retrieve and list events
* `.retrieve(id)` - [retrieve an event](https://stripe.com/docs/api#retrieve_event)
* `.list()` - [list all events](https://stripe.com/docs/api#list_events)

@@ -72,0 +76,0 @@ ## TODO

@@ -29,3 +29,2 @@ var vows = require('vows'),

assert.isNull(err);
console.log("response", response);
assert.isDefined(response);

@@ -32,0 +31,0 @@ assert.equal(response.object, 'charge');

@@ -21,3 +21,2 @@ var vows = require('vows'),

assert.isNull(err);
console.log("response", response);
assert.isDefined(response);

@@ -39,3 +38,3 @@ assert.equal(response.object, 'customer');

description: "test",
card: { number: "4111111111111111",
card: { number: "4242424242424242",
exp_month: 12,

@@ -55,7 +54,5 @@ exp_year: 2020,

topic: function(create_err, customer) {
console.log("customer for deletion", customer);
stripe.customers.del(customer.id, this.callback);
},
'Customer was deleted': function(err,response) {
console.log("response", response);
assert.isNull(err);

@@ -62,0 +59,0 @@ assert.isTrue(response.deleted);

@@ -30,3 +30,2 @@ var vows = require('vows'),

console.log('response', response);
assert.isDefined(response);

@@ -44,3 +43,3 @@ assert.equal(response.object, 'plan');

plan: plan.id,
card: { number: "4111111111111111",
card: { number: "4242424242424242",
exp_month: d.getMonth() + 1,

@@ -55,3 +54,2 @@ exp_year: d.getFullYear() + 1,

console.log("response", response);
assert.isDefined(response);

@@ -74,3 +72,2 @@ assert.equal(response.object, 'customer');

console.log('response', response);
assert.isDefined(response);

@@ -87,3 +84,2 @@ assert.equal(response.object, 'charge');

console.log('response', response);
assert.isDefined(response);

@@ -105,3 +101,2 @@ assert.isArray(response.data);

console.log('response', response);
assert.isDefined(response);

@@ -118,3 +113,2 @@ assert.equal(response.object, 'invoice');

console.log('response', response);
assert.isDefined(response);

@@ -131,3 +125,2 @@ assert.equal(response.object, 'invoice');

console.log('response', response);
assert.isDefined(response);

@@ -143,3 +136,2 @@ assert.isTrue(response.deleted);

console.log('response', response);
assert.isDefined(response);

@@ -146,0 +138,0 @@ assert.isTrue(response.deleted);

@@ -39,3 +39,2 @@ var vows = require('vows'),

assert.isNull(err);
console.log('response', response);
assert.isDefined(response);

@@ -57,3 +56,2 @@ assert.equal(response.object, 'plan');

assert.isNull(err);
console.log('response', response);
assert.isDefined(response);

@@ -75,3 +73,2 @@ assert.equal(response.id, p.id);

assert.isNull(err);
console.log('response', response);
assert.isDefined(response);

@@ -91,3 +88,2 @@ assert.equal(response.object, 'plan');

assert.isNull(err);
console.log('response', response);

@@ -109,3 +105,2 @@ assert.isDefined(response);

console.log('response', response);
assert.isDefined(response);

@@ -126,3 +121,2 @@ assert.isTrue(response.deleted);

console.log('response', response);
assert.isDefined(response);

@@ -129,0 +123,0 @@ assert.isTrue(response.deleted);

@@ -21,8 +21,7 @@ var vows = require('vows'),

stripe.token.create({
card: { number: "4111111111111111",
card: { number: "4242424242424242",
exp_month: 1,
exp_year: 2021,
name: "J. Ester"
},
amount: 77
}
}, this.callback);

@@ -29,0 +28,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc