Commit 2c89742a authored by eileenmcnaugton's avatar eileenmcnaugton
Browse files

test-fix, pass through whether the form is in test mode

parent e3a476fc
......@@ -643,7 +643,10 @@ LEFT JOIN civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co
*/
protected function beginPostProcess() {
if ($this->_mode) {
$this->_paymentProcessor = CRM_Financial_BAO_PaymentProcessor::getPayment($this->_params['payment_processor_id']);
$this->_paymentProcessor = CRM_Financial_BAO_PaymentProcessor::getPayment(
$this->_params['payment_processor_id'],
($this->_mode == 'test')
);
if (in_array('credit_card_exp_date', array_keys($this->_params))) {
$this->_params['year'] = CRM_Core_Payment_Form::getCreditCardExpirationYear($this->_params);
$this->_params['month'] = CRM_Core_Payment_Form::getCreditCardExpirationMonth($this->_params);
......
Markdown is supported
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