Skip to content

Commit

Permalink
changes for display config
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulwahidsharief committed Dec 12, 2024
1 parent 0be1c58 commit 1c1c803
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions woo-razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -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;
}

/**
Expand Down

0 comments on commit 1c1c803

Please sign in to comment.