From 1c1c8039ca83505eed798e29bc5eb1d4e459b49b Mon Sep 17 00:00:00 2001 From: Razorpay Date: Thu, 12 Dec 2024 11:48:07 +0530 Subject: [PATCH] changes for display config --- woo-razorpay.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/woo-razorpay.php b/woo-razorpay.php index 1afe86a4..a8fe5f9a 100644 --- a/woo-razorpay.php +++ b/woo-razorpay.php @@ -1475,6 +1475,7 @@ public function generate_razorpay_form($orderId) public function getDisplayConfig() { + $config = []; $checkout360_status = get_option('rzp_checkout360_status'); $rzp_cod_intelligence_enable = get_option('rzp_cod_intelligence_enable'); @@ -1483,10 +1484,10 @@ public function getDisplayConfig() (empty($rzp_cod_intelligence_enable) === true or $rzp_cod_intelligence_enable === 'no')) { - return [$config['display']['hide'] = ['method' => 'cod']]; + $config['display']['hide'][] = ['method' => 'cod']; } - return []; + return $config; } /**