Skip to content
Snippets Groups Projects
Commit 6f85fac9 authored by mattwire's avatar mattwire
Browse files

Remote membership_type_tag from plan name

parent 15fcc555
No related branches found
No related tags found
No related merge requests found
...@@ -219,9 +219,6 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment { ...@@ -219,9 +219,6 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
public function createPlan($params, $amount) { public function createPlan($params, $amount) {
$currency = strtolower($params['currencyID']); $currency = strtolower($params['currencyID']);
$planId = "every-{$params['frequency_interval']}-{$params['frequency_unit']}-{$amount}-" . $currency; $planId = "every-{$params['frequency_interval']}-{$params['frequency_unit']}-{$amount}-" . $currency;
if (isset($params['membership_type_tag'])) {
$planId = $params['membership_type_tag'] . $planId;
}
if ($this->_paymentProcessor['is_test']) { if ($this->_paymentProcessor['is_test']) {
$planId .= '-test'; $planId .= '-test';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment