X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPayment%2FeWAY.php;h=4dfce475e741e0d435e4d7ad03c59c648177f594;hb=2aa397bc9ba4608d4146278d55dedd4080c53aec;hp=10f2a3236d4d66c670035883c6925a7b175434fd;hpb=2c53a8f729f160b603efc6e8f5eb03c118df6ed3;p=civicrm-core.git diff --git a/CRM/Core/Payment/eWAY.php b/CRM/Core/Payment/eWAY.php index 10f2a3236d..4dfce475e7 100644 --- a/CRM/Core/Payment/eWAY.php +++ b/CRM/Core/Payment/eWAY.php @@ -1,7 +1,7 @@ invoice_id = $invoiceId; return $contribution->find(); @@ -435,7 +450,7 @@ class CRM_Core_Payment_eWAY extends CRM_Core_Payment { /************************************************************************************************* * This function checks the eWAY response status - returning a boolean false if status != 'true' *************************************************************************************************/ - function isError(&$response) { + public function isError(&$response) { $status = $response->Status(); if ((stripos($status, "true")) === FALSE) { @@ -447,7 +462,7 @@ class CRM_Core_Payment_eWAY extends CRM_Core_Payment { /************************************************** * Produces error message and returns from class **************************************************/ - function &errorExit($errorCode = NULL, $errorMessage = NULL) { + public function &errorExit($errorCode = NULL, $errorMessage = NULL) { $e = CRM_Core_Error::singleton(); if ($errorCode) { @@ -462,7 +477,7 @@ class CRM_Core_Payment_eWAY extends CRM_Core_Payment { /************************************************** * NOTE: 'doTransferCheckout' not implemented **************************************************/ - function doTransferCheckout(&$params, $component) { + public function doTransferCheckout(&$params, $component) { CRM_Core_Error::fatal(ts('This function is not implemented')); } @@ -472,16 +487,18 @@ class CRM_Core_Payment_eWAY extends CRM_Core_Payment { * 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 but could be + * @return null|string + * @internal param string $mode the mode we are operating in (live or test) - not used but could be * to check that the 'test' mode CustomerID was equal to '87654321' and that the URL was * set to https://www.eway.com.au/gateway_cvn/xmltest/TestPage.asp * * returns string $errorMsg if any errors found - null if OK * - ********************************************************************************************/ + ****************************************************************************************** + */ //function checkConfig( $mode ) // CiviCRM V1.9 Declaration // CiviCRM V2.0 Declaration - function checkConfig() { + public function checkConfig() { $errorMsg = array(); if (empty($this->_paymentProcessor['user_name'])) { @@ -500,11 +517,17 @@ class CRM_Core_Payment_eWAY extends CRM_Core_Payment { } } - function send_alert_email($p_eWAY_tran_num, $p_trxn_out, $p_trxn_back, $p_request, $p_response) { + /** + * @param $p_eWAY_tran_num + * @param $p_trxn_out + * @param $p_trxn_back + * @param $p_request + * @param $p_response + */ + public function send_alert_email($p_eWAY_tran_num, $p_trxn_out, $p_trxn_back, $p_request, $p_response) { // Initialization call is required to use CiviCRM APIs. civicrm_initialize(TRUE); - list($fromName, $fromEmail) = CRM_Core_BAO_Domain::getNameAndEmail(); $from = "$fromName <$fromEmail>"; @@ -553,4 +576,3 @@ The CiviCRM eWAY Payment Processor Module } } // end class CRM_Core_Payment_eWAY -