public function bankInfosRegister(
        VendorInterface $vendor,
        BankInfo $bankInfo
    ) {

        $this->resetRestClient();

        $this->restClient->getConfig()->setPath(
            'request.options/headers/php-auth-user',
            $this->login
        );

        $this->restClient->getConfig()->setPath(
            'request.options/headers/php-auth-pw',
            $this->password
        );

        if (!is_null($vendor->getHiPayId())) {
            $this->restClient->getConfig()->setPath(
                'request.options/headers/php-auth-subaccount-id',
                $vendor->getHiPayId()
            );
        }

        $parameters = $bankInfo->mergeIntoParameters();

        $command = $this->restClient->getCommand(
            'RegisterBankInfo',
            $parameters
        );
        $result = $this->executeRest($command, $parameters);

        return $result;
    }
public function bankInfosRegister(
        VendorInterface $vendor,
        BankInfo $bankInfo
    ) {

        $this->resetRestClient();

        $this->restClient->getConfig()->setPath(
            'request.options/headers/php-auth-user',
            $this->login
        );

        $this->restClient->getConfig()->setPath(
            'request.options/headers/php-auth-pw',
            $this->password
        );

        if (!is_null($vendor->getHiPayId())) {
            $this->restClient->getConfig()->setPath(
                'request.options/headers/php-auth-subaccount-id',
                $vendor->getHiPayId()
            );
        }

        $parameters = $bankInfo->mergeIntoParameters();

        $command = $this->restClient->getCommand(
            'RegisterBankInfo',
            $parameters
        );
        $result = $this->executeRest($command, $parameters);

        return $result;
    }
public function bankInfosRegister ( VendorInterface $ vendor , BankInfo $ bankInfo ) { $ this -> resetRestClient ( ) ; $ this -> restClient -> getConfig ( ) -> setPath ( 'request.options/headers/php-auth-user' , $ this -> login ) ; $ this -> restClient -> getConfig ( ) -> setPath ( 'request.options/headers/php-auth-pw' , $ this -> password ) ; if ( ! is_null ( $ vendor -> getHiPayId ( ) ) ) { $ this -> restClient -> getConfig ( ) -> setPath ( 'request.options/headers/php-auth-subaccount-id' , $ vendor -> getHiPayId ( ) ) ; } $ parameters = $ bankInfo -> mergeIntoParameters ( ) ; $ command = $ this -> restClient -> getCommand ( 'RegisterBankInfo' , $ parameters ) ; $ result = $ this -> executeRest ( $ command , $ parameters ) ; return $ result ; }
Create a bank account in HiPay.

@param VendorInterface $vendor
@param BankInfo $bankInfo

@return array|bool if array is empty

@throws Exception
Create a bank account in HiPay .