From 60ce0716a9b1c45ddc6aee37c13bf46fec247ecc Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 2 Aug 2016 13:06:04 +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(); } /**