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
ffcbe024
Commit
ffcbe024
authored
4 years ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue with future start date for memberships when it is 'now'
parent
fa52c827
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
CRM/Core/Payment/Stripe.php
+7
-1
7 additions, 1 deletion
CRM/Core/Payment/Stripe.php
info.xml
+1
-1
1 addition, 1 deletion
info.xml
with
8 additions
and
2 deletions
CRM/Core/Payment/Stripe.php
+
7
−
1
View file @
ffcbe024
...
...
@@ -728,8 +728,14 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
*/
private
function
getRecurBillingCycleDay
(
$params
)
{
if
(
isset
(
$params
[
'receive_date'
]))
{
return
strtotime
(
$params
[
'receive_date'
]);
$receiveDateTimestamp
=
strtotime
(
$params
[
'receive_date'
]);
// If `receive_date` was set to "now" it will be in the past (by a few seconds) by the time we actually send it to Stripe.
if
(
$receiveDateTimestamp
>
strtotime
(
'now'
))
{
// We've specified a receive_date in the future, use it!
return
$receiveDateTimestamp
;
}
}
// Either we had no receive_date or receive_date was in the past (or "now" when form was submitted).
return
NULL
;
}
...
...
This diff is collapsed.
Click to expand it.
info.xml
+
1
−
1
View file @
ffcbe024
...
...
@@ -14,7 +14,7 @@
<author>
Matthew Wire (MJW Consulting)
</author>
<email>
mjw@mjwconsult.co.uk
</email>
</maintainer>
<releaseDate>
2020-07-1
8
</releaseDate>
<releaseDate>
2020-07-
3
1
</releaseDate>
<version>
6.5-dev
</version>
<develStage>
alpha
</develStage>
<compatibility>
...
...
This diff is collapsed.
Click to expand it.
mattwire
@mattwire
mentioned in issue
#199 (closed)
·
4 years ago
mentioned in issue
#199 (closed)
mentioned in issue #199
Toggle commit list
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