コード例 #1
0
 /**
  * Payment initialization request.In this scenario it is used for all payments operations.
  * Session ID is stored automatically in this scenario!
  *
  * @param array $data Payment parameters
  *
  * @return \stdClass
  */
 public static function Init($data)
 {
     $fullData = array_merge(array("VWUserLgn" => PaytureEWalletConfiguration::getVWUserLogin(), "VWUserPsw" => PaytureEWalletConfiguration::getVWUserPassword()), $data);
     $response = self::request("Init", PaytureEWallet::EWALLET_API_PREFIX, array("VWID" => PaytureEWalletConfiguration::getMerchantKey(), "DATA" => self::stringify($fullData)));
     if (empty($response->ErrCode) && $response) {
         self::$_sessionId = $response->SessionId;
     }
     return $response;
 }
コード例 #2
0
 /**
  * This request deletes a registered user’s account data, as well as all cards linked to his account.
  *
  * @param string $merchantPassword Merchant password for executing operations via API
  *
  * @return \stdClass
  */
 public static function Delete($merchantPassword)
 {
     $data = array("VWUserLgn" => PaytureEWalletConfiguration::getVWUserLogin(), "Password" => $merchantPassword);
     return self::request("Delete", PaytureEWallet::EWALLET_API_PREFIX, array("VWID" => PaytureEWalletConfiguration::getMerchantKey(), "DATA" => self::stringify($data)));
 }