basalt / subscriptions-sqlite/src / sqlitePaymentStores
Function: sqlitePaymentStores()
> sqlitePaymentStores(dbOrLocation?): SqlitePaymentStores
Defined in: subscriptions-sqlite/src/index.ts:490
Wire the payment ledger + recurring stores to a SQLite database:
ts
const p = sqlitePaymentStores('./data/billing.db')
const ledger = new PaymentLedger({ store: p.payments, webhooks: s.webhooks })
const billing = new RecurringReferenceBilling({ gateway, ledger, store: p.recurring })Parameters
dbOrLocation?
string | DatabaseSync