From c9f7029c370dfd0fb5c0260bafbabe6e4ea25a66 Mon Sep 17 00:00:00 2001 From: Cesar Garcia Date: Mon, 2 Sep 2024 15:54:35 +0200 Subject: [PATCH] get model from transaction (#24) --- src/Transaction.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Transaction.php b/src/Transaction.php index 0bc46a6..61800ad 100644 --- a/src/Transaction.php +++ b/src/Transaction.php @@ -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;