From 5c8cadce39e6ef6dee5fca73c29523ca73a850e7 Mon Sep 17 00:00:00 2001 From: Glauber Silva Date: Tue, 3 Sep 2024 10:07:38 -0300 Subject: [PATCH] refactor: change hook name --- src/OffSiteGateway/OffSiteGatewayServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OffSiteGateway/OffSiteGatewayServiceProvider.php b/src/OffSiteGateway/OffSiteGatewayServiceProvider.php index e3fd61c..da57db6 100644 --- a/src/OffSiteGateway/OffSiteGatewayServiceProvider.php +++ b/src/OffSiteGateway/OffSiteGatewayServiceProvider.php @@ -40,6 +40,6 @@ function (PaymentGatewayRegister $registrar) { Hooks::addAction('init', OffSiteCheckoutPageSimulation::class); // Add Async Event Handlers - Hooks::addAction('givewp_off-site_gateway_sample_event_donation_completed', DonationCompleted::class); + Hooks::addAction('givewp_' . OffSiteGateway::id() . '_event_donation_completed', DonationCompleted::class); } }