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
7fd38b0f
Commit
7fd38b0f
authored
9 years ago
by
drastik
Browse files
Options
Downloads
Patches
Plain Diff
Quick fix for
#104
.
parent
48851321
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Core/Payment/Stripe.php
+4
-9
4 additions, 9 deletions
CRM/Core/Payment/Stripe.php
with
4 additions
and
9 deletions
CRM/Core/Payment/Stripe.php
+
4
−
9
View file @
7fd38b0f
...
...
@@ -259,10 +259,11 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
// Get live/test mode.
switch
(
$this
->
_mode
)
{
case
'test'
:
$transaction_mode
=
0
;
$params
[
'transaction_mode'
]
=
$transaction_mode
=
0
;
break
;
case
'live'
:
$transaction_mode
=
1
;
$params
[
'transaction_mode'
]
=
$transaction_mode
=
1
;
break
;
}
// Get proper entry URL for returning on error.
...
...
@@ -550,13 +551,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
* @public
*/
function
doRecurPayment
(
&
$params
,
$amount
,
$stripe_customer
)
{
switch
(
$this
->
_mode
)
{
case
'test'
:
$transaction_mode
=
0
;
break
;
case
'live'
:
$transaction_mode
=
1
;
}
$transaction_mode
=
$params
[
'transaction_mode'
];
// Get recurring contrib properties.
$frequency
=
$params
[
'frequency_unit'
];
...
...
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