protected function settleRequest()
	{
		$fields = array(
			'terminalId' => $this->config->get('gateway.mellat.terminalId'),
			'userName' => $this->config->get('gateway.mellat.username'),
			'userPassword' => $this->config->get('gateway.mellat.password'),
			'orderId' => $this->transactionId(),
			'saleOrderId' => $this->transactionId(),
			'saleReferenceId' => $this->trackingCode
		);

		try {
			$soap = new SoapClient($this->serverUrl);
			$response = $soap->bpSettleRequest($fields);

		} catch (\SoapFault $e) {
			$this->transactionFailed();
			$this->newLog('SoapFault', $e->getMessage());
			throw $e;
		}

		if ($response->return == '0' || $response->return == '45') {
			$this->transactionSucceed();
			$this->newLog($response->return, Enum::TRANSACTION_SUCCEED_TEXT);
			return true;
		}

		$this->transactionFailed();
		$this->newLog($response->return, MellatException::$errors[$response->return]);
		throw new MellatException($response->return);
	}
protected function settleRequest()
	{
		$fields = array(
			'terminalId' => $this->config->get('gateway.mellat.terminalId'),
			'userName' => $this->config->get('gateway.mellat.username'),
			'userPassword' => $this->config->get('gateway.mellat.password'),
			'orderId' => $this->transactionId(),
			'saleOrderId' => $this->transactionId(),
			'saleReferenceId' => $this->trackingCode
		);

		try {
			$soap = new SoapClient($this->serverUrl);
			$response = $soap->bpSettleRequest($fields);

		} catch (\SoapFault $e) {
			$this->transactionFailed();
			$this->newLog('SoapFault', $e->getMessage());
			throw $e;
		}

		if ($response->return == '0' || $response->return == '45') {
			$this->transactionSucceed();
			$this->newLog($response->return, Enum::TRANSACTION_SUCCEED_TEXT);
			return true;
		}

		$this->transactionFailed();
		$this->newLog($response->return, MellatException::$errors[$response->return]);
		throw new MellatException($response->return);
	}
protected function settleRequest ( ) { $ fields = array ( 'terminalId' => $ this -> config -> get ( 'gateway.mellat.terminalId' ) , 'userName' => $ this -> config -> get ( 'gateway.mellat.username' ) , 'userPassword' => $ this -> config -> get ( 'gateway.mellat.password' ) , 'orderId' => $ this -> transactionId ( ) , 'saleOrderId' => $ this -> transactionId ( ) , 'saleReferenceId' => $ this -> trackingCode ) ; try { $ soap = new SoapClient ( $ this -> serverUrl ) ; $ response = $ soap -> bpSettleRequest ( $ fields ) ; } catch ( \ SoapFault $ e ) { $ this -> transactionFailed ( ) ; $ this -> newLog ( 'SoapFault' , $ e -> getMessage ( ) ) ; throw $ e ; } if ( $ response -> return == '0' || $ response -> return == '45' ) { $ this -> transactionSucceed ( ) ; $ this -> newLog ( $ response -> return , Enum :: TRANSACTION_SUCCEED_TEXT ) ; return true ; } $ this -> transactionFailed ( ) ; $ this -> newLog ( $ response -> return , MellatException :: $ errors [ $ response -> return ] ) ; throw new MellatException ( $ response -> return ) ; }
Send settle request

@return bool

@throws MellatException
@throws SoapFault
Send settle request