Merge pull request #12354 from totten/master-cache-b64
[civicrm-core.git] / CRM / Core / Payment / PaymentExpressIPN.php
index dc6c681d0521064f618cbad546e37adfe511b79b..52bd5ce82ee7a5d8e1bf47fad650771fdbdbae00 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.7                                                |
+ | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -259,11 +259,20 @@ class CRM_Core_Payment_PaymentExpressIPN extends CRM_Core_Payment_BaseIPN {
   }
 
   /**
-   * This method is handles the response that will be invoked by the
-   * notification or request sent by the payment processor.
+   * Main notification processing method.
+   *
    * hex string from paymentexpress is passed to this function as hex string. Code based on googleIPN
    * mac_key is only passed if the processor is pxaccess as it is used for decryption
    * $dps_method is either pxaccess or pxpay
+   *
+   * @param string $dps_method
+   * @param array $rawPostData
+   * @param string $dps_url
+   * @param string $dps_user
+   * @param string $dps_key
+   * @param string $mac_key
+   *
+   * @throws \Exception
    */
   public static function main($dps_method, $rawPostData, $dps_url, $dps_user, $dps_key, $mac_key) {
 
@@ -423,8 +432,11 @@ class CRM_Core_Payment_PaymentExpressIPN extends CRM_Core_Payment_BaseIPN {
   }
 
   /**
-   * Converts the comma separated name-value pairs in <TxnData2>
-   * to an array of values.
+   * Converts the comma separated name-value pairs in <TxnData2> to an array of values.
+   *
+   * @param string $str
+   *
+   * @return array
    */
   public static function stringToArray($str) {
     $vars = $labels = array();