Documentation
¶
Index ¶
Constants ¶
View Source
const StkTable = "stk_transactions"
StkTable is table for mpesa payments
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type STKTransaction ¶ added in v1.2.6
type STKTransaction struct { ID uint `gorm:"primaryKey;autoIncrement"` InitiatorID string `gorm:"index;type:varchar(50)"` InitiatorTransactionReference string `gorm:"index;type:varchar(50)"` InitiatorCustomerReference string `gorm:"index;type:varchar(50)"` InitiatorCustomerNames string `gorm:"type:varchar(50)"` PhoneNumber string `gorm:"index;type:varchar(15);not null"` Amount string `gorm:"type:float(10);not null"` ShortCode string `gorm:"index;type:varchar(15)"` AccountReference string `gorm:"index;type:varchar(50)"` TransactionDesc string `gorm:"type:varchar(300)"` MerchantRequestID string `gorm:"index;type:varchar(50);"` CheckoutRequestID string `gorm:"index;type:varchar(50);"` StkResponseDescription string `gorm:"type:varchar(300)"` StkResponseCustomerMessage string `gorm:"type:varchar(300)"` StkResponseCode string `gorm:"index;type:varchar(10)"` ResultCode string `gorm:"index;type:varchar(10)"` ResultDescription string `gorm:"type:varchar(300)"` MpesaReceiptId string `gorm:"index;type:varchar(50);unique"` StkStatus string `gorm:"index;type:varchar(30)"` Source string `gorm:"index;type:varchar(30)"` Tag string `gorm:"index;type:varchar(30)"` Succeeded string `gorm:"index;type:enum('YES','NO');default:NO"` Processed string `gorm:"index;type:enum('YES','NO');default:NO"` TransactionTime sql.NullTime `gorm:"index;type:datetime(6)"` UpdatedAt time.Time `gorm:"autoUpdateTime;type:datetime(6)"` CreatedAt time.Time `gorm:"index;autoCreateTime;type:datetime(6);not null"` }
STKTransaction contains mpesa stk transaction details
func (*STKTransaction) TableName ¶ added in v1.2.6
func (*STKTransaction) TableName() string
TableName returns the name of the table
Click to show internal directories.
Click to hide internal directories.