Skip to content

Commit

Permalink
Update woo-razorpay.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitcbr committed May 28, 2024
1 parent 9d503b5 commit 1d7fccb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions woo-razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ function() {

function woocommerce_razorpay_init()
{
add_action("woocommerce_update_options_advanced", 'hposInstrumentation');
function hposInstrumentation()
add_action("woocommerce_update_options_advanced", function()
{
$rzp = new WC_Razorpay();

Expand Down Expand Up @@ -118,7 +117,7 @@ function hposInstrumentation()

update_option('rzp_hpos', 'no');
}
}
});

if (!class_exists('WC_Payment_Gateway') || class_exists('WC_Razorpay'))
{
Expand Down

0 comments on commit 1d7fccb

Please sign in to comment.