CRM-14881 - ensure we use the default NULL rather than 0.00 for fee/net
authorJamie McClelland <jm@mayfirst.org>
Mon, 30 Jun 2014 17:17:37 +0000 (13:17 -0400)
committerJamie McClelland <jm@mayfirst.org>
Mon, 30 Jun 2014 17:17:37 +0000 (13:17 -0400)
amounts so it's consistent with other IPNs.

----------------------------------------
* CRM-14881: Cannot edit contribution created by authorize.net recurring contribution
  https://issues.civicrm.org/jira/browse/CRM-14881

CRM/Core/Payment/AuthorizeNetIPN.php

index 73926d1fa071c2aed64a50f86c7066d5fcaf3d0d..ae6077954fa5626a7b4b913186df8a0f6825b9da 100644 (file)
@@ -223,8 +223,8 @@ class CRM_Core_Payment_AuthorizeNetIPN extends CRM_Core_Payment_BaseIPN {
     $input['subscription_id'] = self::retrieve('x_subscription_id', 'Integer');
     $input['response_code'] = self::retrieve('x_response_code', 'Integer');
     $input['MD5_Hash'] = self::retrieve('x_MD5_Hash', 'String', FALSE, '');
-    $input['fee_amount'] = self::retrieve('x_fee_amount', 'Money', FALSE, '0.00');
-    $input['net_amount'] = self::retrieve('x_net_amount', 'Money', FALSE, '0.00');
+    $input['fee_amount'] = self::retrieve('x_fee_amount', 'Money', FALSE, NULL);
+    $input['net_amount'] = self::retrieve('x_net_amount', 'Money', FALSE, NULL);
     $input['response_reason_code'] = self::retrieve('x_response_reason_code', 'String', FALSE);
     $input['response_reason_text'] = self::retrieve('x_response_reason_text', 'String', FALSE);
     $input['subscription_paynum'] = self::retrieve('x_subscription_paynum', 'Integer', FALSE, 0);