mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-01 02:41:39 -05:00
Added getCustomer method to stripe
no-issue This uses the stripeRequests module directly since the customers api was removed.
This commit is contained in:
parent
2849c647d6
commit
373f67a117
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue