Skip to content

Commit

Permalink
Merge pull request #995 from payplug/SMP-3069
Browse files Browse the repository at this point in the history
SMP-3069 change generic hook for a more specific one, the fires only …
  • Loading branch information
GhDj authored Feb 27, 2025
2 parents 9542927 + b492c6d commit 866fdbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateway/PayplugGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function __construct()
self::$log_enabled = $this->debug;

add_filter('woocommerce_get_order_item_totals', [$this, 'customize_gateway_title'], 10, 2);
add_action('the_post', [$this, 'validate_payment']);
add_action('woocommerce_checkout_order_processed', [$this, 'validate_payment']);
add_action('woocommerce_available_payment_gateways', [$this, 'check_gateway']);
}

Expand Down

0 comments on commit 866fdbc

Please sign in to comment.