function __construct($orderInfo, $pgwParams, $testMode = false) { parent::__construct(); $this->orderInfo = $orderInfo; $this->test = $testMode; if ($testMode) { $this->eWayCustomerID = '87654321'; $this->eWayUsername = '******'; $this->eWayPassword = '******'; $this->soap_link = 'https://www.eway.com.au/gateway/rebill/test/managerebill_test.asmx'; } else { $currency = oseObject::getValue($this->orderInfo, 'payment_currency'); $this->eWayCustomerID = oseObject::getValue($pgwParams, "eWayCustomerID_{$currency}"); $this->eWayUsername = oseObject::getValue($pgwParams, "eWayUsername_{$currency}"); $this->eWayPassword = oseObject::getValue($pgwParams, "eWayPassword_{$currency}"); $this->soap_link = 'https://www.eway.com.au/gateway/rebill/managerebill.asmx'; } if (empty($this->eWayCustomerID)) { oseExit(getErrorMessage('cc', 00, 'Since the currency you are going to pay is not supported, the transaction will be aborted!')); } }
function __construct() { parent::__construct(); }
function __construct($orderInfo, $item) { parent::__construct($item); $this->orderInfo = $orderInfo; }