/**
  * This request fetches the list of payment cards registered by the selected user in Payture system.
  *
  * @return \stdClass
  */
 public static function GetList()
 {
     return self::request("GetList", PaytureEWallet::EWALLET_API_PREFIX, array("VWID" => PaytureEWalletConfiguration::getMerchantKey(), "DATA" => self::stringify(array("VWUserLgn" => PaytureEWalletConfiguration::getVWUserLogin(), "VWUserPsw" => PaytureEWalletConfiguration::getVWUserPassword()))));
 }
Exemple #2
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;
 }
 /**
  * This request retrieves information on current status of a payment.
  * It should also be used at discretion in case of Payture gateway not responding, while other payment requests
  * are being processed.
  *
  * @param string $orderId Payment ID in Merchant system
  *
  * @return \stdClass
  */
 public static function PayStatus($orderId)
 {
     return self::request("PayStatus", PaytureEWallet::EWALLET_API_PREFIX, array("VWID" => PaytureEWalletConfiguration::getMerchantKey(), "DATA" => self::stringify(["OrderId" => $orderId])));
 }