Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
<snipped>1. send in the form object to doDirectPayment<snipped>
Lobo,On a bit of reflection, here's a simpler way to do what you're suggesting. Don't change the hook at all: just change the base class of the Processor class, and add a setter and a getter for the form object.
$payment =& CRM_Core_Payment::singleton( $this->_mode, 'Contribute', $this->_paymentProcessor ); $payment->setForm($this); //New line $result =& $payment->doDirectPayment( $paymentParams );
Will do. Will likely have it later today.
Yeah, there is. Get yourself an account on JIRA, and watch the bug. Should work fine.I'm patching 3.0 (the trunk, actually), which due to some reformatting of some of the files in the 3.0 tree likely won't patch 2.2 correctly. But it will be easy enough to see what I did. I don't think the processor related code has changed in any substantial way in any case.