Details
-
Type: New Feature
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.0.3
-
Fix Version/s: 3.2
-
Component/s: CiviContribute
-
Labels:None
Description
Attached is code for Payflow Pro payment processor. Although the code is there to upload recurring transactions the customer opted not to complete the recurring payment side of things so this should be turned off in the payment_processor_type table for now.
(code works but on-going querying of outcomes in incomplete).
So, you can leave out the customisations to the core files for now but I do think the edit to Contribute/form/contribution/confirm.php should be added as this is the code to allow payment processors to pass back additional variables and have them stored. This is essential for payflowPro recurring but is generic to other processors.
Contribute/form/contribution/confirm.php
// we need to add a unique trxn_id to avoid a unique key error
// in paypal IPN we reset this when paypal sends us the real trxn id, CRM-2991
$recurParams['trxn_id'] = CRM_Utils_Array::value( 'trxn_id', $params, $params['invoiceID'] );
+ /*Eileen edit - set the recurring trxn_id to the ProfileID if one exists (ie. has been set
+ * by PayflowPro payment processor
+ */
+ if ($params['recur_trxn_id'])
+ if ($params['end_date'])
{ + $recurParams['end_date'] = date( 'YmdHis', $params['end_date']); + }
+ if ($params['next_sched_contribution'])
+ if ($params['processor_id'])
+ //Eileen's edit ends
$ids = array( );