*
* @param string $mode the mode of operation: live or test
*
- * @return void
- **********************************************************/ function __construct($mode, &$paymentProcessor) {
+ * @param $paymentProcessor
+ *
+ * @return \CRM_Core_Payment_Elavon *******************************************************
+ */
+ function __construct($mode, &$paymentProcessor) {
// live or test
$this->_mode = $mode;
$this->_paymentProcessor = $paymentProcessor;
*
* @param string $mode the mode of operation: live or test
*
+ * @param object $paymentProcessor
+ *
* @return object
* @static
- *
*/
static function &singleton($mode, &$paymentProcessor) {
$processorName = $paymentProcessor['name'];
* NOTE: Called by Events and Contribute to check config params are set prior to trying
* register any credit card details
*
- * @param string $mode the mode we are operating in (live or test) - not used
+ * @return null|string
+ * @internal param string $mode the mode we are operating in (live or test) - not used
*
* returns string $errorMsg if any errors found - null if OK
*
- ********************************************************************************************/
+ ******************************************************************************************
+ */
// function checkConfig( $mode ) // CiviCRM V1.9 Declaration
// CiviCRM V2.0 Declaration
function checkConfig() {
}
}
//end check config
+ /**
+ * @param $requestFields
+ *
+ * @return string
+ */
function buildXML($requestFields) {
$xmlFieldLength['ssl_first_name'] = 15;
// credit card name
return $xml;
}
+ /**
+ * @param $value
+ * @param $fieldlength
+ *
+ * @return string
+ */
function tidyStringforXML($value, $fieldlength) {
// the xml is posted to a url so must not contain spaces etc. It also needs to be cut off at a certain
// length to match the processor's field length. The cut needs to be made after spaces etc are
return ($return);
}
+ /**
+ * @param $Xml
+ *
+ * @return mixed
+ */
function decodeXMLresponse($Xml) {
/**