CRM-13757 Paypal Pro IPN - fix type on recurring_payment_id
authorEileen <eileen@fuzion.co.nz>
Thu, 14 Nov 2013 01:27:56 +0000 (14:27 +1300)
committerEileen <eileen@fuzion.co.nz>
Thu, 14 Nov 2013 01:27:56 +0000 (14:27 +1300)
----------------------------------------
* CRM-13757: Paypal pro ipn - 'recurring_payment_id' incorrectly typed as an integer
  http://issues.civicrm.org/jira/browse/CRM-13757

CRM/Core/Payment/PayPalProIPN.php

index 86cee3efef38939dcbc906481787a0986217b63f..64c3e78fd3a7859a6c8fde2eb3b2496ca76333de 100644 (file)
@@ -207,7 +207,7 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN {
       case 'recurring_payment_profile_created':
         $recur->create_date = $now;
         $recur->contribution_status_id = 2;
-        $recur->processor_id = $this->retrieve('recurring_payment_id', 'Integer');
+        $recur->processor_id = $this->retrieve('recurring_payment_id', 'String');
         $recur->trxn_id = $recur->processor_id;
         $subscriptionPaymentStatus = CRM_Core_Payment::RECURRING_PAYMENT_START;
         $sendNotification = TRUE;