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
Properties
code
> readonly code: string
Defined in: core/src/errors.ts:25
Inherited from
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
status
> readonly status: 400 = 400
Defined in: subscriptions/src/gateway.ts:108