Skip to content

Commit

Permalink
get model from transaction (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargb authored Sep 2, 2024
1 parent 23f1698 commit c9f7029
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ public function isDenied(): bool
return $this->transactionModel->isDenied();
}

public function model(): TransactionModel
{
return $this->transactionModel;
}

private function gateway(): GatewayInterface
{
$paymentKey = $this->transactionModel->payment->key;
Expand Down

0 comments on commit c9f7029

Please sign in to comment.