Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stripe
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
Stripe
Commits
74afb49f
Commit
74afb49f
authored
1 year ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Require mjwshared 1.3
parent
6639afb8
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!241
Stripe Import extension
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Stripe/Check.php
+1
-38
1 addition, 38 deletions
CRM/Stripe/Check.php
with
1 addition
and
38 deletions
CRM/Stripe/Check.php
+
1
−
38
View file @
74afb49f
...
...
@@ -25,9 +25,8 @@ class CRM_Stripe_Check {
/**
* @var string
*/
const
MIN_VERSION_MJWSHARED
=
'1.
2.20
'
;
const
MIN_VERSION_MJWSHARED
=
'1.
3
'
;
const
MIN_VERSION_FIREWALL
=
'1.5.9'
;
const
MIN_VERSION_MJWPAYMENTAPI
=
'0.2'
;
/**
* @var array
...
...
@@ -169,42 +168,6 @@ class CRM_Stripe_Check {
}
}
/**
* @throws \CRM_Core_Exception
*/
private
function
checkExtensionMjwPaymentApi
()
{
$extensionName
=
'mjwpaymentapi'
;
$extensions
=
civicrm_api3
(
'Extension'
,
'get'
,
[
'full_name'
=>
$extensionName
,
]);
if
(
empty
(
$extensions
[
'count'
])
||
(
$extensions
[
'values'
][
$extensions
[
'id'
]][
'status'
]
!==
'installed'
))
{
$message
=
new
CRM_Utils_Check_Message
(
__FUNCTION__
.
E
::
SHORT_NAME
.
'_requirements'
,
E
::
ts
(
'The <em>%1</em> extension requires the <em>MJW Payment API</em> extension which is not installed. See <a href="%2" target="_blank">details</a> for more information.'
,
[
1
=>
ucfirst
(
E
::
SHORT_NAME
),
2
=>
'https://civicrm.org/extensions/mjwpaymentapi'
,
]
),
E
::
ts
(
'%1: Missing Requirements'
,
[
1
=>
ucfirst
(
E
::
SHORT_NAME
)]),
\Psr\Log\LogLevel
::
ERROR
,
'fa-money'
);
$message
->
addAction
(
E
::
ts
(
'Install now'
),
NULL
,
'href'
,
[
'path'
=>
'civicrm/admin/extensions'
,
'query'
=>
[
'action'
=>
'update'
,
'id'
=>
$extensionName
,
'key'
=>
$extensionName
]]
);
$this
->
messages
[]
=
$message
;
return
;
}
if
(
isset
(
$extensions
[
'id'
])
&&
$extensions
[
'values'
][
$extensions
[
'id'
]][
'status'
]
===
'installed'
)
{
$this
->
requireExtensionMinVersion
(
$extensionName
,
self
::
MIN_VERSION_MJWPAYMENTAPI
,
$extensions
[
'values'
][
$extensions
[
'id'
]][
'version'
]);
}
}
private
function
checkWebhooks
()
{
// If we didn't install mjwshared yet check requirements but don't crash when checking webhooks
if
(
trait_exists
(
'CRM_Mjwshared_WebhookTrait'
))
{
...
...
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