Added getCustomer method to stripe

no-issue

This uses the stripeRequests module directly since the customers api was
removed.
This commit is contained in:
Fabien O'Carroll 2019-09-24 17:27:53 +07:00
parent 2849c647d6
commit 373f67a117

View File

@ -1,3 +1,4 @@
const {retrieve, create} = require('./api/stripeRequests');
const api = require('./api'); const api = require('./api');
module.exports = class StripePaymentProcessor { module.exports = class StripePaymentProcessor {
@ -82,4 +83,8 @@ module.exports = class StripePaymentProcessor {
return session; return session;
} }
async getCustomer(id) {
return retrieve(this._stripe, 'customers', id);
}
}; };