* @param array $params
* Assoc array of input parameters for this transaction.
*
- * @return array the result in an nice formatted array (or an error object)
+ * @return array
+ * the result in an nice formatted array (or an error object)
* @abstract
*/
public function doDirectPayment(&$params) {
// add a recurring payment if requested
if ($params['is_recur'] && $params['installments'] > 1) {
//Recur Variables
- $recurUnit = $params['frequency_unit'];
+ $recurUnit = $params['frequency_unit'];
$recurInterval = $params['frequency_interval'];
- $next = time();
- $day = 60 * 60 * 24;
+ $next = time();
+ $day = 60 * 60 * 24;
switch ($recurUnit) {
case 'day':
$next += $recurInterval * $day;
return TRUE;
}
- // ignore for now, more elaborate error handling later.
/**
+ * ignore for now, more elaborate error handling later.
* @param $response
*
* @return object
/**
* This function checks to see if we have the right config values
*
- * @return string the error message if any
+ * @return string
+ * the error message if any
*/
public function checkConfig() {
$error = array();