Skip to content

Transactions Model

PRO

Transaction records persisted for each payment gateway response (Pro). Includes successful, refunded, and failed attempts.

Class

  • Source: fluent-booking-pro/app/Models/Transactions.php
  • Table: fcal_transactions
  • Primary key: id
  • Extends: Model

Attributes

ColumnTypeNullableDefaultDescription
idBIGINT(20) UNSIGNED NOT NULL PRIMARY KEYYesPrimary key for the row.
object_idBIGINT UNSIGNEDNo0Polymorphic object ID for the meta row.
object_typeVARCHAR(100)No``Polymorphic object type for the meta row.
transaction_typevarchar(255)Yesone_timeTransaction Type stored for this record.
subscription_idint(11)YesForeign key to a related record.
card_last_4int(4)YesCard Last 4 stored for this record.
card_brandvarchar(255)YesCard Brand stored for this record.
vendor_charge_idVARCHAR(192)No``Foreign key to a related record.
payment_methodVARCHAR(100)No``Selected payment method slug.
payment_method_typeVARCHAR(100)No``Payment Method Type stored for this record.
statusVARCHAR(20)No``Lifecycle status (scheduled, cancelled, completed, rejected, pending).
totalDECIMAL(18,9)No0.000000000Total stored for this record.
rateDECIMAL(10,5)No1.00000Rate stored for this record.
uuidVARCHAR(100)No``Uuid stored for this record.
metajsonYesSerialized meta payload.
created_atTIMESTAMPYesCreation timestamp maintained by the ORM.
updated_atTIMESTAMPYesUpdate timestamp maintained by the ORM.

Public Methods (sample)

MethodSignature
getMetaAttribute()$meta