Пример #1
0
 public function __construct($authType = self::AUTH_CLASSIC)
 {
     if ($authType !== self::AUTH_CLASSIC && $authType !== self::AUTH_LIGHT) {
         throw new ApiException('This interface doesn\'t support the authentication type given.');
     }
     $this->url = 'https://arbitrage.webmoney.ru/xml/X17_CreateContract.aspx';
     parent::__construct($authType);
 }
Пример #2
0
 public function __construct($authType = self::AUTH_CLASSIC)
 {
     if (!in_array($authType, array(self::AUTH_CLASSIC, self::AUTH_LIGHT))) {
         throw new ApiException('This interface doesn\'t support the authentication type given.');
     }
     $this->url = 'https://arbitrage.webmoney.ru/xml/X17_GetContractInfo.aspx';
     $this->type = self::TYPE_ACCEPT_DATE;
     parent::__construct($authType);
 }
Пример #3
0
 /**
  * @param string $authType
  * @param string $secretKey
  * @throws ApiException
  */
 public function __construct($authType = self::AUTH_CLASSIC, $secretKey = null)
 {
     if ($secretKey === null && ($authType === self::AUTH_MD5 || $authType === self::AUTH_SECRET_KEY)) {
         throw new ApiException('Secret key is required for this authentication type.');
     }
     $this->url = 'https://merchant.webmoney.ru/conf/xml/XMLTransGet.asp';
     $this->secretKey = $secretKey;
     parent::__construct($authType);
 }
Пример #4
0
 public function __construct($authType = self::AUTH_CLASSIC)
 {
     if ($authType === self::AUTH_CLASSIC) {
         $this->url = 'https://w3s.webmoney.ru/asp/XMLOperations.asp';
     } elseif ($authType === self::AUTH_LIGHT) {
         $this->url = 'https://w3s.wmtransfer.com/asp/XMLOperationsCert.asp';
     } else {
         throw new ApiException('This interface doesn\'t support the authentication type given.');
     }
     parent::__construct($authType);
 }
Пример #5
0
 public function __construct($authType = self::AUTH_CLASSIC)
 {
     if ($authType !== self::AUTH_CLASSIC && $authType !== self::AUTH_LIGHT) {
         throw new ApiException('This interface doesn\'t support the authentication type given.');
     }
     $this->url = 'https://passport.webmoney.ru/asp/XMLGetWMPassport.asp';
     $this->paramDict = self::DICT_SHOW;
     $this->paramInfo = self::INFO_SHOW;
     $this->paramMode = self::MODE_CHECK;
     parent::__construct($authType);
 }
Пример #6
0
 /**
  * @param string $authType
  *
  * @throws ApiException
  */
 public function __construct($authType = self::AUTH_CLASSIC)
 {
     switch ($authType) {
         case self::AUTH_CLASSIC:
             $this->url = 'https://w3s.wmtransfer.com/asp/XMLSendMsg.asp';
             break;
         case self::AUTH_LIGHT:
             $this->url = 'https://w3s.wmtransfer.com/asp/XMLSendMsgCert.asp';
             break;
         default:
             throw new ApiException('This interface doesn\'t support the authentication type given.');
     }
     parent::__construct($authType);
 }
Пример #7
0
 /**
  * @param string $authType
  *
  * @throws ApiException
  */
 public function __construct($authType = self::AUTH_CLASSIC)
 {
     switch ($authType) {
         case self::AUTH_CLASSIC:
             $this->url = 'https://merchant.webmoney.ru/conf/xml/XMLTrustConfirm.asp';
             break;
         case self::AUTH_LIGHT:
             $this->url = 'https://merchant.wmtransfer.com/conf/xml/XMLTrustConfirm.asp';
             break;
         default:
             throw new ApiException('This interface doesn\'t support the authentication type given.');
     }
     parent::__construct($authType);
 }
Пример #8
0
 public function getUrl()
 {
     if ($this->authType === self::AUTH_CLASSIC) {
         if ($this->signerWmid === $this->requestedWmid) {
             $this->url = 'https://w3s.webmoney.ru/asp/XMLTrustList.asp';
         } else {
             $this->url = 'https://w3s.webmoney.ru/asp/XMLTrustList2.asp';
         }
     } elseif ($this->authType === self::AUTH_LIGHT) {
         if ($this->signerWmid === $this->requestedWmid) {
             $this->url = 'https://w3s.webmoney.ru/asp/XMLTrustListCert.asp';
         } else {
             $this->url = 'https://w3s.webmoney.ru/asp/XMLTrustList2Cert.asp';
         }
     }
     return parent::getUrl();
 }
Пример #9
0
 /**
  * @param string $authType
  *
  * @throws ApiException
  */
 public function __construct($authType = self::AUTH_CLASSIC)
 {
     switch ($authType) {
         case self::AUTH_CLASSIC:
             $this->url = 'https://apipassport.webmoney.ru/XMLCheckUser.aspx';
             break;
         case self::AUTH_LIGHT:
             $this->url = 'https://apipassport.webmoney.ru/XMLCheckUserCert.aspx';
             break;
         default:
             throw new ApiException('This interface doesn\'t support the authentication type given.');
     }
     parent::__construct($authType);
 }
Пример #10
0
 /**
  * @param string $authType
  *
  * @throws ApiException
  */
 public function __construct($authType = self::AUTH_CLASSIC)
 {
     if ($authType === self::AUTH_CLASSIC) {
         $this->url = 'https://apipassport.webmoney.ru/XMLCheckUser.aspx';
     } elseif ($authType === self::AUTH_LIGHT) {
         $this->url = 'https://apipassport.webmoney.ru/XMLCheckUserCert.aspx';
     } else {
         throw new ApiException('This interface doesn\'t support the authentication type given.');
     }
     parent::__construct($authType);
 }