Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mjwshared
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
mjwshared
Commits
c627a1fe
Commit
c627a1fe
authored
3 weeks ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Add retry task for PaymentprocessorWebhooks
parent
29c7152c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Civi/PaymentprocessorWebhook/Tasks.php
+30
-0
30 additions, 0 deletions
Civi/PaymentprocessorWebhook/Tasks.php
schema/PaymentprocessorWebhook.entityType.php
+4
-2
4 additions, 2 deletions
schema/PaymentprocessorWebhook.entityType.php
with
34 additions
and
2 deletions
Civi/PaymentprocessorWebhook/Tasks.php
0 → 100644
+
30
−
0
View file @
c627a1fe
<?php
namespace
Civi\PaymentprocessorWebhook
;
use
Civi\Core\Service\AutoSubscriber
;
use
CRM_Mjwshared_ExtensionUtil
as
E
;
class
Tasks
extends
AutoSubscriber
{
public
static
function
getSubscribedEvents
()
{
return
[
'&hook_civicrm_searchKitTasks'
=>
'onSearchKitTasks'
,
];
}
public
function
onSearchKitTasks
(
array
&
$tasks
,
bool
$checkPermissions
,
?int
$userID
):
void
{
$tasks
[
'PaymentprocessorWebhook'
][
'retry'
]
=
[
'title'
=>
E
::
ts
(
'Retry Paymentprocessor Webhooks'
),
'icon'
=>
'fa-rectangle-refresh'
,
'apiBatch'
=>
[
'action'
=>
'update'
,
'params'
=>
[
'values'
=>
[
'status'
=>
'new'
,
'processed_date'
=>
NULL
]],
'confirmMsg'
=>
E
::
ts
(
'Schedule retry for %1 %2.'
),
'runMsg'
=>
E
::
ts
(
'Scheduling retry for %1 %2...'
),
'successMsg'
=>
E
::
ts
(
'%1 %2 have been scheduled for retry (will retry next time scheduled jobs are run).'
),
'errorMsg'
=>
E
::
ts
(
'An error occurred while attempting to schedule retry for %1 %2.'
),
],
];
}
}
This diff is collapsed.
Click to expand it.
schema/PaymentprocessorWebhook.entityType.php
+
4
−
2
View file @
c627a1fe
...
...
@@ -79,14 +79,16 @@ return [
'created_date'
=>
[
'title'
=>
E
::
ts
(
'Created Date'
),
'sql_type'
=>
'timestamp'
,
'input_type'
=>
NULL
,
'input_type'
=>
'Date'
,
'readonly'
=>
TRUE
,
'description'
=>
E
::
ts
(
'When the webhook was first received by the IPN code'
),
'default'
=>
'CURRENT_TIMESTAMP'
,
],
'processed_date'
=>
[
'title'
=>
E
::
ts
(
'Processed Date'
),
'sql_type'
=>
'timestamp'
,
'input_type'
=>
NULL
,
'input_type'
=>
'Date'
,
'readonly'
=>
TRUE
,
'description'
=>
E
::
ts
(
'Has this webhook been processed yet?'
),
'default'
=>
NULL
,
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment