From aa7baf7862d8cf0ac3ea2f7b9c2a34ab5b8d5c06 Mon Sep 17 00:00:00 2001 From: Derek Myers Date: Sat, 11 Nov 2017 14:55:11 -0600 Subject: [PATCH] Added catching exception when deleting customer in billing gateway --- src/Mmanos/Billing/CustomerBillableTrait/Billing.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mmanos/Billing/CustomerBillableTrait/Billing.php b/src/Mmanos/Billing/CustomerBillableTrait/Billing.php index a6cf59a..e0023fd 100644 --- a/src/Mmanos/Billing/CustomerBillableTrait/Billing.php +++ b/src/Mmanos/Billing/CustomerBillableTrait/Billing.php @@ -152,7 +152,9 @@ public function delete(array $properties = array()) return $this; } - $this->customer->delete(); + try { + $this->customer->delete(); + } catch (Exception $e) {} $this->refresh();