Skip to content

basalt / subscriptions/src / PaymentAmountMismatchError

Class: PaymentAmountMismatchError ​

Defined in: subscriptions/src/gateway.ts:107

Thrown when a confirmed payment's amount does not match the amount that was originally requested for that payment id — an underpayment, or a forged / mis-routed callback trying to settle an invoice for less.

Extends ​

Constructors ​

Constructor ​

> new PaymentAmountMismatchError(paymentId, expected, actual): PaymentAmountMismatchError

Defined in: subscriptions/src/gateway.ts:109

Parameters ​

paymentId ​

string

expected ​

number

actual ​

number

Returns ​

PaymentAmountMismatchError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

Defined in: core/src/errors.ts:28

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details


status ​

> readonly status: 400 = 400

Defined in: subscriptions/src/gateway.ts:108

Released under the MIT License.