class Transaction extends AbstractModel

Properties summary

Type Property Description
protected $table
protected $dates
protected $appends
protected $columnMap
$timestamps

Methods summary

Return Type Method Name Description
BelongsTo client() A transaction can belong to a client.
BelongsTo invoice() A transaction can belong to an invoice.
Builder scopeLookup(Builder $query, string $gateway, string $transactionId) Perform a transaction lookup for a given gateway and transaction ID.
string|null getFormattedTransactionIdAttribute() Retrieve the transaction after formatting.

Details

BelongsTo client ()

A transaction can belong to a client.

Return Value

BelongsTo

BelongsTo invoice ()

A transaction can belong to an invoice.

Return Value

BelongsTo

Builder scopeLookup (Builder $query, string $gateway, string $transactionId)

Perform a transaction lookup for a given gateway and transaction ID.

Parameters

Builder $query
string $gateway
string $transactionId

Return Value

Builder

string|null getFormattedTransactionIdAttribute ()

Retrieve the transaction after formatting.

Return Value

string|null