<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.7 |
+ | CiviCRM version 5 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
}
/**
- * 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) {
}
/**
- * 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();