Skip to content

basalt / subscriptions-prisma/src / prismaPaymentStores

Function: prismaPaymentStores() ​

> prismaPaymentStores(client, options?): PrismaPaymentStores

Defined in: subscriptions-prisma/src/index.ts:544

Wire the payment ledger + recurring stores to your Prisma client:

ts
const p = prismaPaymentStores(prisma)
const ledger = new PaymentLedger({ store: p.payments, webhooks: s.webhooks })
const billing = new RecurringReferenceBilling({ gateway, ledger, store: p.recurring })

Parameters ​

client ​

PrismaPaymentsClient

options? ​

PrismaSubscriptionsStoreOptions = {}

Returns ​

PrismaPaymentStores

Released under the MIT License.