diff --git a/src/include/order/class-wc-retailcrm-order-payment.php b/src/include/order/class-wc-retailcrm-order-payment.php index a1aa1a9..0d9a3ce 100644 --- a/src/include/order/class-wc-retailcrm-order-payment.php +++ b/src/include/order/class-wc-retailcrm-order-payment.php @@ -79,6 +79,8 @@ class WC_Retailcrm_Order_Payment extends WC_Retailcrm_Abstracts_Data if ($this->is_new) { if (isset($this->settings[$order->get_payment_method()])) { $data['type'] = $this->settings[$order->get_payment_method()]; + } else { + $data = array(); } }