From 903036c02c1d27646b6c8d5c4b5da439b07c8eab Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 27 Jul 2016 14:37:36 +0300 Subject: [PATCH] Fix for removing payment method --- app/Ninja/PaymentDrivers/BasePaymentDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/PaymentDrivers/BasePaymentDriver.php b/app/Ninja/PaymentDrivers/BasePaymentDriver.php index 07b3fcbe0af4..c6b13d2d8227 100644 --- a/app/Ninja/PaymentDrivers/BasePaymentDriver.php +++ b/app/Ninja/PaymentDrivers/BasePaymentDriver.php @@ -460,7 +460,7 @@ class BasePaymentDriver ->with('payment_methods') ->first(); - if ($this->customer) { + if ($this->customer && $this->invitation) { $this->customer = $this->checkCustomerExists($this->customer) ? $this->customer : null; }