PaymentCallbackLogs


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id bigserial 19 √ nextval('employer_purchases."PaymentCallbackLogs_id_seq"'::regclass)
paymentNumber varchar 64 null
orderType "employer_purchases"."enum_PaymentCallbackLogs_orderType" 2147483647 √ null
orderNumber varchar 64 null
transactionId varchar 255 null

The unique identifier for this transaction as provided by the payment provider.

paymentProvider "employer_purchases"."enum_PaymentCallbackLogs_paymentProvider" 2147483647 null
callbackBody jsonb 2147483647 null
callbackHeader jsonb 2147483647 null
providerStatus varchar 64 √ null
verifyResult "employer_purchases"."enum_PaymentCallbackLogs_verifyResult" 2147483647 null
responseCode varchar 32 null
processingStatus "employer_purchases"."enum_PaymentCallbackLogs_processingStatus" 2147483647 null

Tracks the outcome of processing this callback. PENDING: the callback has been received and logged but not yet processed. SUCCESS: the callback was processed successfully — this includes cases where a duplicate callback was intentionally ignored, as idempotent deduplication is itself a successful outcome; in such cases, processInfo will contain details about the duplicate. FAILED: processing encountered an error and could not complete.

processInfo jsonb 2147483647 √ null
createdAt timestamptz 35,6 now()
updatedAt timestamptz 35,6 now()
orderSource "employer_purchases"."enum_PaymentCallbackLogs_orderSource" 2147483647 null
eventType varchar 255 √ null
referenceId varchar 255 √ null
purchaseType "employer_purchases"."enum_PaymentCallbackLogs_purchaseType" 2147483647 null

ONE_TIME: The payment log for a one-time purchase. SUBSCRIPTION: First payment log for subscription and activation. RENEWAL: It may be a renewal triggered by the business side or an auto renewal from the provider. Which renewal mode is stored in the subscription table.

eventStatus "employer_purchases"."enum_PaymentCallbackLogs_eventStatus" 2147483647 null

Indexes

Constraint Name Type Sort Column(s)
PaymentCallbackLogs_pkey Primary key Asc id
PaymentCallbackLogs_createdAt_idx Performance Asc createdAt
PaymentCallbackLogs_orderNumber_idx Performance Asc orderNumber
PaymentCallbackLogs_orderSource_idx Performance Asc orderSource
PaymentCallbackLogs_orderType_idx Performance Asc orderType
PaymentCallbackLogs_paymentNumber_idx Performance Asc paymentNumber
PaymentCallbackLogs_paymentProvider_idx Performance Asc paymentProvider
PaymentCallbackLogs_processingStatus_idx Performance Asc processingStatus
PaymentCallbackLogs_transactionId_idx Performance Asc transactionId
PaymentCallbackLogs_verifyResult_idx Performance Asc verifyResult

Relationships