Documentation / @tenancy-node/core / PaymentProvider
Interface: PaymentProvider
Defined in: core/src/ports/billing.ts:75
Pasarela de pago (Stripe, Mercado Pago, un QR bancario...). La pasarela manual viene incluida: el pago se registra a mano desde el panel o con tenancy.billing.pay().
Properties
name
readonlyname:string
Defined in: core/src/ports/billing.ts:76
Methods
createCheckout()
createCheckout(
input):Promise<CheckoutSession>
Defined in: core/src/ports/billing.ts:78
Inicia el cobro de una factura.
Parameters
input
invoice
returnUrl?
string
tenant
Returns
Promise<CheckoutSession>
parseWebhook()
parseWebhook(
request):Promise<PaymentWebhookResult>
Defined in: core/src/ports/billing.ts:84
Verifica la firma del webhook y dice qué pasó. Debe lanzar si la firma no es válida.
Parameters
request
body
string
headers
Readonly<Record<string, string | readonly string[] | undefined>>
Returns
Promise<PaymentWebhookResult>