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
82b1eaf3
Commit
82b1eaf3
authored
3 years ago
by
mattwire
Browse files
Options
Downloads
Patches
Plain Diff
Set paymentTypeLabel to 'Stripe'
parent
1ee49d4d
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!176
Release 6.7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Core/Payment/Stripe.php
+18
-2
18 additions, 2 deletions
CRM/Core/Payment/Stripe.php
with
18 additions
and
2 deletions
CRM/Core/Payment/Stripe.php
+
18
−
2
View file @
82b1eaf3
...
...
@@ -127,6 +127,24 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
}
}
/**
* Override CRM_Core_Payment function
*
* @return string
*/
public
function
getPaymentTypeName
()
{
return
'credit_card'
;
}
/**
* Override CRM_Core_Payment function
*
* @return string
*/
public
function
getPaymentTypeLabel
()
{
return
E
::
ts
(
'Stripe'
);
}
/**
* We can use the stripe processor on the backend
* @return bool
...
...
@@ -839,8 +857,6 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
$params
=
$this
->
setStatusPaymentCompleted
(
$params
);
// Transaction ID is always stripe Charge ID.
$this
->
setPaymentProcessorTrxnID
(
$stripeCharge
->
id
);
// @fixme: This is for compatibility with mjwshared 1.0 - drop once we require 1.1
$params
[
'fee_amount'
]
=
$newParams
[
'fee_amount'
];
case
'requires_action'
:
// We fall through to this in requires_capture / requires_action so we always set a receipt_email
...
...
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