Пример #1
0
 /**
  * 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;
 }