From 128921e512be6893116065059a49d36f04603f31 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 2 Aug 2016 13:06:44 +0300 Subject: [PATCH] Fix refunding payment for archived gateway --- app/Models/Payment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Payment.php b/app/Models/Payment.php index c6aa790fac0f..04d0b2cca516 100644 --- a/app/Models/Payment.php +++ b/app/Models/Payment.php @@ -79,7 +79,7 @@ class Payment extends EntityModel */ public function account_gateway() { - return $this->belongsTo('App\Models\AccountGateway'); + return $this->belongsTo('App\Models\AccountGateway')->withTrashed(); } /**