Skip to content
Snippets Groups Projects
Commit 7fd38b0f authored by drastik's avatar drastik
Browse files

Quick fix for #104.

parent 48851321
No related branches found
No related tags found
No related merge requests found
...@@ -259,10 +259,11 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment { ...@@ -259,10 +259,11 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
// Get live/test mode. // Get live/test mode.
switch ($this->_mode) { switch ($this->_mode) {
case 'test': case 'test':
$transaction_mode = 0; $params['transaction_mode'] = $transaction_mode = 0;
break; break;
case 'live': case 'live':
$transaction_mode = 1; $params['transaction_mode'] = $transaction_mode = 1;
break;
} }
// Get proper entry URL for returning on error. // Get proper entry URL for returning on error.
...@@ -550,13 +551,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment { ...@@ -550,13 +551,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
* @public * @public
*/ */
function doRecurPayment(&$params, $amount, $stripe_customer) { function doRecurPayment(&$params, $amount, $stripe_customer) {
switch ($this->_mode) { $transaction_mode = $params['transaction_mode'];
case 'test':
$transaction_mode = 0;
break;
case 'live':
$transaction_mode = 1;
}
// Get recurring contrib properties. // Get recurring contrib properties.
$frequency = $params['frequency_unit']; $frequency = $params['frequency_unit'];
......
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