Skip to content
Snippets Groups Projects
Commit 82b1eaf3 authored by mattwire's avatar mattwire
Browse files

Set paymentTypeLabel to 'Stripe'

parent 1ee49d4d
Branches
Tags
1 merge request!176Release 6.7
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment