Commit 82b1eaf3 authored by mattwire's avatar mattwire
Browse files

Set paymentTypeLabel to 'Stripe'

parent 1ee49d4d
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment