diff --git a/src/binders/payments/captures/PaymentCapturesBinder.ts b/src/binders/payments/captures/PaymentCapturesBinder.ts index 60417515..6290fb38 100644 --- a/src/binders/payments/captures/PaymentCapturesBinder.ts +++ b/src/binders/payments/captures/PaymentCapturesBinder.ts @@ -30,9 +30,7 @@ export default class PaymentCapturesBinder extends Binder public create(parameters: CreateParameters) { if (renege(this, this.create, ...arguments)) return; const { paymentId, ...data } = parameters; - if (!checkId(paymentId, 'payment')) { - throw new ApiError('The payment id is invalid'); - } + assertWellFormedId(paymentId, 'payment'); return this.networkClient.post(getPathSegments(paymentId), data); }