diff --git a/ghost/members-api/lib/stripe/index.js b/ghost/members-api/lib/stripe/index.js index fcb2237a44..bfb435d687 100644 --- a/ghost/members-api/lib/stripe/index.js +++ b/ghost/members-api/lib/stripe/index.js @@ -1,3 +1,4 @@ +const {retrieve, create} = require('./api/stripeRequests'); const api = require('./api'); module.exports = class StripePaymentProcessor { @@ -82,4 +83,8 @@ module.exports = class StripePaymentProcessor { return session; } + + async getCustomer(id) { + return retrieve(this._stripe, 'customers', id); + } };