Skip to content

Commit

Permalink
refactor: change async job search parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva committed Sep 3, 2024
1 parent 0e23945 commit 90a9cb6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ public function __invoke(OffSiteGatewayWebhookNotification $webhookNotification)

switch (strtolower($webhookNotification->gatewayPaymentStatus)) {
case 'complete':
$asyncJobHookName = 'givewp_' . OffSiteGateway::id() . '_event_donation_completed';
AsBackgroundJobs::enqueueAsyncAction(
$asyncJobHookName,
'givewp_' . OffSiteGateway::id() . '_event_donation_completed',
[$webhookNotification->gatewayPaymentId],
'ADDON_TEXTDOMAIN'
);
Expand All @@ -43,7 +42,7 @@ public function __invoke(OffSiteGatewayWebhookNotification $webhookNotification)
* The block below is not necessary for real-world integrations;
* We are adding it here just for educational purposes.
*/
$asyncJobUrl = admin_url('tools.php?page=action-scheduler&s=' . $asyncJobHookName);
$asyncJobUrl = admin_url('tools.php?page=action-scheduler&s=' . $webhookNotification->gatewayPaymentId);
?>
<style>
.container {
Expand Down

0 comments on commit 90a9cb6

Please sign in to comment.