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); } }