/** * Configures EWallet with customer who has login - $login and password from DB * * @param $login - payture login * @return Customer - customer object */ private function configureEWalletWithUser($login) { $customer = Customer::findByLoginOrCreateNew($login, true); PaytureEWalletConfiguration::setVWUserLogin($customer->login); PaytureEWalletConfiguration::setVWUserPassword($customer->password); return $customer; }