@withpotter/payments — module reference

A support module — it mounts no HTTP routes of its own but contributes the internal building blocks below. See the package internal architecture for how the layers fit together.

Internals

Entities

Sequelize models owned by this module.

Payment — table payments

FieldType
idstring
tenantIdstring
referencestring
amountnumber
currencystring
statusPaymentStatus
emailstring
metadataRecord<string, any>
paystackIdstring
paidAtDate
createdAtDate
updatedAtDate

WebhookLog — table webhook_logs

FieldType
idstring
providerstring
eventTypestring
referencestring
tenantIdstring
paymentTypestring
statusWebhookLogStatus
errorMessagestring
payloadRecord<string, unknown>
resultRecord<string, unknown>
createdAtDate

Repositories

Data-access classes wrapping the entities.

PaymentRepository

findByReference · findByTenantAndReference · updateByReference · listByTenant

WebhookLogRepository

create · findById · findByReference · updateStatus · markProcessed · markFailed · markIgnored · list · findByTenantId

Providers

  • PlatformPaymentProvider

Generated from the module’s source. Routes are relative to the engine root (default http://localhost:3001). For full request/response schemas use the live OpenAPI document.