Skip to content

basalt / subscriptions/src / RecurringBillingOptions

Interface: RecurringBillingOptions ​

Defined in: subscriptions/src/recurring.ts:79

Properties ​

currency? ​

> optional currency?: string

Defined in: subscriptions/src/recurring.ts:89

ISO 4217 currency passed to the gateway (defaults to the gateway's own).


gateway ​

> gateway: PaymentGateway

Defined in: subscriptions/src/recurring.ts:81

Payment driver (ProxyPay / AppyPay / …).


leadDays? ​

> optional leadDays?: number

Defined in: subscriptions/src/recurring.ts:87

Days before period end that a subscription becomes due(). Default 5.


ledger? ​

> optional ledger?: PaymentLedger

Defined in: subscriptions/src/recurring.ts:83

Ledger for payment records + webhook idempotency. Default: in-memory.


now? ​

> optional now?: () => number

Defined in: subscriptions/src/recurring.ts:91

Clock in epoch ms (tests, simulations). Default: Date.now.

Returns ​

number


store? ​

> optional store?: RecurringStore

Defined in: subscriptions/src/recurring.ts:85

Where subscriptions live. Default: in-memory.

Released under the MIT License.