From 1285bd7e4715a59d62447a525e2b7ebe81faad99 Mon Sep 17 00:00:00 2001 From: Andy Pieters Date: Fri, 29 Apr 2016 16:23:35 +0200 Subject: [PATCH] Update Transaction.php --- src/Result/Transaction/Transaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Result/Transaction/Transaction.php b/src/Result/Transaction/Transaction.php index d0bff1f7..0d2c9def 100644 --- a/src/Result/Transaction/Transaction.php +++ b/src/Result/Transaction/Transaction.php @@ -76,7 +76,7 @@ public function isCanceled() */ public function isRefunded($allowPartialRefunds = true) { - if ($this->data['paymentDetails']['state'] == 'REFUND') { + if ($this->data['paymentDetails']['stateName'] == 'REFUND') { return true; }