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
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
e6e2bbe5
Commit
e6e2bbe5
authored
1 year ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Update version
parent
2b3a62ac
No related branches found
No related tags found
1 merge request
!217
Implement Stripe Checkout (with support for SEPA and ACH)
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
info.xml
+3
-3
3 additions, 3 deletions
info.xml
mixin/smarty-v2@1.0.1.mixin.php
+4
-9
4 additions, 9 deletions
mixin/smarty-v2@1.0.1.mixin.php
stripe.civix.php
+2
-2
2 additions, 2 deletions
stripe.civix.php
with
9 additions
and
14 deletions
info.xml
+
3
−
3
View file @
e6e2bbe5
...
...
@@ -15,9 +15,9 @@
<author>
Matthew Wire (MJW Consulting)
</author>
<email>
mjw@mjwconsult.co.uk
</email>
</maintainer>
<releaseDate>
2023-05-
0
1
</releaseDate>
<releaseDate>
2023-05-
3
1
</releaseDate>
<version>
6.9-dev
</version>
<develStage>
alph
a
</develStage>
<develStage>
bet
a
</develStage>
<compatibility>
<ver>
5.58
</ver>
</compatibility>
...
...
@@ -41,7 +41,7 @@
<mixin>
menu-xml@1.0.0
</mixin>
<mixin>
mgd-php@1.0.0
</mixin>
<mixin>
setting-php@1.0.0
</mixin>
<mixin>
smarty-v2@1.0.
0
</mixin>
<mixin>
smarty-v2@1.0.
1
</mixin>
<mixin>
entity-types-php@1.0.0
</mixin>
</mixins>
<upgrader>
CRM_Stripe_Upgrader
</upgrader>
...
...
This diff is collapsed.
Click to expand it.
mixin/smarty-v2@1.0.
0
.mixin.php
→
mixin/smarty-v2@1.0.
1
.mixin.php
+
4
−
9
View file @
e6e2bbe5
...
...
@@ -4,7 +4,7 @@
* Auto-register "templates/" folder.
*
* @mixinName smarty-v2
* @mixinVersion 1.0.
0
* @mixinVersion 1.0.
1
* @since 5.59
*
* @param CRM_Extension_MixInfo $mixInfo
...
...
@@ -19,14 +19,9 @@ return function ($mixInfo, $bootCache) {
}
$register
=
function
()
use
(
$dir
)
{
// This implementation is useful for older versions of CiviCRM. It can be replaced/updated going forward (v1.1+).
$smarty
=
CRM_Core_Smarty
::
singleton
();
if
(
!
is_array
(
$smarty
->
template_dir
))
{
$this
->
template_dir
=
[
$smarty
->
template_dir
];
}
if
(
!
in_array
(
$dir
,
$smarty
->
template_dir
))
{
array_unshift
(
$smarty
->
template_dir
,
$dir
);
}
// This implementation has a theoretical edge-case bug on older versions of CiviCRM where a template could
// be registered more than once.
CRM_Core_Smarty
::
singleton
()
->
addTemplateDir
(
$dir
);
};
// Let's figure out what environment we're in -- so that we know the best way to call $register().
...
...
This diff is collapsed.
Click to expand it.
stripe.civix.php
+
2
−
2
View file @
e6e2bbe5
...
...
@@ -133,8 +133,8 @@ function _stripe_civix_insert_navigation_menu(&$menu, $path, $item) {
if
(
empty
(
$path
))
{
$menu
[]
=
[
'attributes'
=>
array_merge
([
'label'
=>
CRM_Utils_Array
::
value
(
'name'
,
$item
)
,
'active'
=>
1
,
'label'
=>
$item
[
'name'
]
??
NULL
,
'active'
=>
1
,
],
$item
),
];
return
TRUE
;
...
...
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