mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 10:42:45 +03: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,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);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user