diff --git a/lib/services/payment-intent.js b/lib/services/payment-intent.js index 2c87833..89a02de 100644 --- a/lib/services/payment-intent.js +++ b/lib/services/payment-intent.js @@ -25,6 +25,11 @@ module.exports = class Service extends Base { if (capture) { return this.stripe.paymentIntents.capture(id, stripe); } + + if (cancel) { + return this.stripe.paymentIntents.cancel(id, stripe); + } + return this._update(id, rest, params); }