basalt / subscriptions/src / RecurringInterval
Type Alias: RecurringInterval
> RecurringInterval = "monthly" | "yearly"
Defined in: subscriptions/src/recurring.ts:14
Recurring billing for gateways with no card-on-file (ProxyPay, AppyPay, Multicaixa/EMIS): model a subscription as one payment reference per period. Each period you issue a fresh reference; when the webhook confirms it, the subscription's paid-through date is extended by one interval.
Drive it with a scheduler: periodically call due() and issueNext() for the ones returned, and feed every verified PaymentEvent through handleEvent().