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
01432442
Commit
01432442
authored
6 months ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Replace deprecated exception
parent
19e5b18a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CRM/Mjwshared/Check.php
+0
-5
0 additions, 5 deletions
CRM/Mjwshared/Check.php
api/v3/Mjwpayment/Notificationretry.php
+2
-2
2 additions, 2 deletions
api/v3/Mjwpayment/Notificationretry.php
docs/webhookqueue.md
+1
-1
1 addition, 1 deletion
docs/webhookqueue.md
with
3 additions
and
8 deletions
CRM/Mjwshared/Check.php
+
0
−
5
View file @
01432442
...
...
@@ -28,8 +28,6 @@ class CRM_Mjwshared_Check {
*
* @param array $messages
*
* @throws \API_Exception
* @throws \Civi\API\Exception\UnauthorizedException
*/
public
function
__construct
(
$messages
)
{
$this
->
messages
=
$messages
;
...
...
@@ -37,7 +35,6 @@ class CRM_Mjwshared_Check {
/**
* @return array
* @throws \API_Exception
* @throws \CRM_Core_Exception
* @throws \Civi\API\Exception\UnauthorizedException
*/
...
...
@@ -188,7 +185,6 @@ class CRM_Mjwshared_Check {
/**
* We don't support "Separate Membership Payment" configuration
*
* @throws \API_Exception
* @throws \CRM_Core_Exception
* @throws \Civi\API\Exception\UnauthorizedException
*/
...
...
@@ -280,7 +276,6 @@ class CRM_Mjwshared_Check {
}
/**
* @throws \API_Exception
* @throws \CRM_Core_Exception
* @throws \Civi\API\Exception\UnauthorizedException
*/
...
...
This diff is collapsed.
Click to expand it.
api/v3/Mjwpayment/Notificationretry.php
+
2
−
2
View file @
01432442
...
...
@@ -32,12 +32,12 @@ function civicrm_api3_mjwpayment_notificationretry($params) {
$paymentProcessorType
=
civicrm_api3
(
'PaymentProcessor'
,
'getsingle'
,
[
'id'
=>
$paymentProcessorId
]);
}
else
{
throw
new
API
_Exception
(
'Unsupported payment processor'
);
throw
new
CRM_Core
_Exception
(
'Unsupported payment processor'
);
}
$processorClassName
=
"CRM_Core_
{
$paymentProcessorType
[
'class_name'
]
}
"
;
if
(
!
method_exists
(
$processorClassName
,
'processPaymentNotification'
))
{
throw
new
API
_Exception
(
'Unsupported payment processor'
);
throw
new
CRM_Core
_Exception
(
'Unsupported payment processor'
);
}
$result
=
FALSE
;
...
...
This diff is collapsed.
Click to expand it.
docs/webhookqueue.md
+
1
−
1
View file @
01432442
...
...
@@ -269,7 +269,7 @@ In your IPN code instead of using a `main()` method create two functions:
* Process the given webhook
*
* @return bool
* @throws \
API
_Exception
* @throws \
CRM_Core
_Exception
* @throws \Civi\API\Exception\UnauthorizedException
*/
public
function
processWebhook
()
{
...
...
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