Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function Cohorter (key, options) {
if (!(this instanceof Cohorter)) return new Cohorter(key, options);
if (!key) throw new Error('Stripe cohort requires a Stripe key.');
this.stripe = Stripe(key);
this.stripe.setApiVersion('2014-03-13');
this.options = defaults(options, { count: 100, concurrency: 1 });
var self = this;
return function () { self.cohort.apply(self, arguments); };
Expand Down Expand Up @@ -114,4 +115,4 @@ Cohorter.prototype.query = function (start, end, offset, callback) {
debug('loaded %d customers with offset %d', customers.length, offset);
callback(null, res);
});
};
};