Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
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
Rich
Stripe
Commits
0951fc22
Commit
0951fc22
authored
8 years ago
by
Joshua Walker
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request
#152
from laryn/patch-2
Same syntax error on 4.7
parents
e106cfab
3b949bc8
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
+2
-2
2 additions, 2 deletions
CRM/Core/Payment/Stripe.php
with
2 additions
and
2 deletions
CRM/Core/Payment/Stripe.php
+
2
−
2
View file @
0951fc22
...
...
@@ -605,7 +605,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
$existing_subscription_query
=
CRM_Core_DAO
::
singleValueQuery
(
"SELECT invoice_id
FROM civicrm_stripe_subscriptions
WHERE customer_id = %1 AND is_live = '
{
$this
->
_islive
}
'
, and
processor_id = %2"
,
$query_params
);
WHERE customer_id = %1 AND is_live = '
{
$this
->
_islive
}
'
AND
processor_id = %2"
,
$query_params
);
if
(
!
empty
(
$existing_subscription_query
))
{
// Cancel existing Recurring Contribution in CiviCRM.
...
...
@@ -634,7 +634,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
$query_params
=
array
(
1
=>
array
(
$stripe_customer
->
id
,
'String'
),
2
=>
array
(
$invoice_id
,
'String'
),
2
=>
array
(
$this
->
_paymentProcessor
[
'id'
],
'Integer'
),
3
=>
array
(
$this
->
_paymentProcessor
[
'id'
],
'Integer'
),
);
// Insert the new Stripe Subscription info.
...
...
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