CRM-20048 Parse "business" not "receiver_email" from IPN
authorA. Jesse Jiryu Davis <jesse@mongodb.com>
Sat, 18 Feb 2017 03:20:48 +0000 (22:20 -0500)
committerA. Jesse Jiryu Davis <jesse@mongodb.com>
Sat, 18 Feb 2017 03:20:48 +0000 (22:20 -0500)
CRM/Core/Payment/PayPalIPN.php

index f4d116ae39a1a61e25b29da98a7d9ac06c1972ee..9aa58748696ecd29312f9e9baa135792d548de83 100644 (file)
@@ -340,7 +340,7 @@ class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN {
     $paymentProcessorID = $this->retrieve('processor_id', 'Integer', FALSE);
     if (empty($paymentProcessorID)) {
       $processorParams = array(
-        'user_name' => $this->retrieve('receiver_email', 'String', FALSE),
+        'user_name' => $this->retrieve('business', 'String', FALSE),
         'payment_processor_type_id' => CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_PaymentProcessorType', 'PayPal_Standard', 'id', 'name'),
         'is_test' => empty($input['is_test']) ? 0 : 1,
       );