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; }