Пример #1
0
 /**
  * @param IQuarkPaymentConfig|CloudPaymentsConfig $config
  *
  * @return bool
  */
 public function Pay(IQuarkPaymentConfig $config)
 {
     $this->Currency = $config->currency;
     $this->Amount = $config->amount;
     $this->AccountId = $config->user;
     $this->_response = $config->API($this, 'https://api.cloudpayments.ru/payments/cards/charge');
     return isset($this->_response->Success) && $this->_response->Success;
 }
 /**
  * @param IQuarkPaymentConfig|CloudPaymentsConfig $config
  *
  * @return bool
  */
 public function Pay(IQuarkPaymentConfig $config)
 {
     $this->_response = $config->API($this, 'https://api.cloudpayments.ru/payments/cards/post3ds');
     return isset($this->_response->Success) && $this->_response->Success;
 }