src/Payment.php
public function getArgs(): array
	{
		$input = [];

		$input['merchantId'] = $this->config->merchantId;
		$input['accountId'] = $this->config->accountId;

		$value = $this->value;
		if ($value !== null) {
			$input['value'] = number_format($value, 2, '.', '');
		}

		if ($this->currency !== null) {
			$input['currency'] = $this->currency;
		}

		if ($this->description !== null) {
			$input['description'] = $this->description;
		}

		if ($this->merchantData !== null) {
			$input['merchantData'] = $this->merchantData;
		}

		if ($this->customerData !== null) {
			$input['customerData'] = $this->customerData;
		}

		if ($this->customerEmail !== null) {
			$input['customerEmail'] = $this->customerEmail;
		}

		if ($this->returnUrl !== null) {
			$input['returnUrl'] = $this->returnUrl;
		}

		if ($this->backToEshopUrl !== null) {
			$input['backToEshopUrl'] = $this->backToEshopUrl;
		}

		if ($this->methodId !== null) {
			$input['methodId'] = $this->methodId;
		}

		if ($this->deposit !== null) {
			$input['deposit'] = $this->getDeposit() ? '1' : '0';
		}

		if ($this->isRecurring !== null) {
			$input['isRecurring'] = $this->getIsRecurring() ? '1' : '0';
		}

		if ($this->merchantSpecificSymbol !== null) {
			$input['merchantSpecificSymbol'] = $this->merchantSpecificSymbol;
		}

		if ($this->eetDph !== null && !$this->eetDph->isEmpty()) {
			$input = array_merge($input, $this->eetDph->toArray());
		}

		return $input;
	}
public function getArgs(): array
	{
		$input = [];

		$input['merchantId'] = $this->config->merchantId;
		$input['accountId'] = $this->config->accountId;

		$value = $this->value;
		if ($value !== null) {
			$input['value'] = number_format($value, 2, '.', '');
		}

		if ($this->currency !== null) {
			$input['currency'] = $this->currency;
		}

		if ($this->description !== null) {
			$input['description'] = $this->description;
		}

		if ($this->merchantData !== null) {
			$input['merchantData'] = $this->merchantData;
		}

		if ($this->customerData !== null) {
			$input['customerData'] = $this->customerData;
		}

		if ($this->customerEmail !== null) {
			$input['customerEmail'] = $this->customerEmail;
		}

		if ($this->returnUrl !== null) {
			$input['returnUrl'] = $this->returnUrl;
		}

		if ($this->backToEshopUrl !== null) {
			$input['backToEshopUrl'] = $this->backToEshopUrl;
		}

		if ($this->methodId !== null) {
			$input['methodId'] = $this->methodId;
		}

		if ($this->deposit !== null) {
			$input['deposit'] = $this->getDeposit() ? '1' : '0';
		}

		if ($this->isRecurring !== null) {
			$input['isRecurring'] = $this->getIsRecurring() ? '1' : '0';
		}

		if ($this->merchantSpecificSymbol !== null) {
			$input['merchantSpecificSymbol'] = $this->merchantSpecificSymbol;
		}

		if ($this->eetDph !== null && !$this->eetDph->isEmpty()) {
			$input = array_merge($input, $this->eetDph->toArray());
		}

		return $input;
	}
public function getArgs ( ) : array { $ input = [ ] ; $ input [ 'merchantId' ] = $ this -> config -> merchantId ; $ input [ 'accountId' ] = $ this -> config -> accountId ; $ value = $ this -> value ; if ( $ value !== null ) { $ input [ 'value' ] = number_format ( $ value , 2 , '.' , '' ) ; } if ( $ this -> currency !== null ) { $ input [ 'currency' ] = $ this -> currency ; } if ( $ this -> description !== null ) { $ input [ 'description' ] = $ this -> description ; } if ( $ this -> merchantData !== null ) { $ input [ 'merchantData' ] = $ this -> merchantData ; } if ( $ this -> customerData !== null ) { $ input [ 'customerData' ] = $ this -> customerData ; } if ( $ this -> customerEmail !== null ) { $ input [ 'customerEmail' ] = $ this -> customerEmail ; } if ( $ this -> returnUrl !== null ) { $ input [ 'returnUrl' ] = $ this -> returnUrl ; } if ( $ this -> backToEshopUrl !== null ) { $ input [ 'backToEshopUrl' ] = $ this -> backToEshopUrl ; } if ( $ this -> methodId !== null ) { $ input [ 'methodId' ] = $ this -> methodId ; } if ( $ this -> deposit !== null ) { $ input [ 'deposit' ] = $ this -> getDeposit ( ) ? '1' : '0' ; } if ( $ this -> isRecurring !== null ) { $ input [ 'isRecurring' ] = $ this -> getIsRecurring ( ) ? '1' : '0' ; } if ( $ this -> merchantSpecificSymbol !== null ) { $ input [ 'merchantSpecificSymbol' ] = $ this -> merchantSpecificSymbol ; } if ( $ this -> eetDph !== null && ! $ this -> eetDph -> isEmpty ( ) ) { $ input = array_merge ( $ input , $ this -> eetDph -> toArray ( ) ) ; } return $ input ; }
List arguments to put into the URL. Returns associative array of
arguments that should be contained in the ThePay gate call.

@return mixed[]
List arguments to put into the URL . Returns associative array of arguments that should be contained in the ThePay gate call .