Example #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;
 }
Example #2
0
 /**
  * @param string $currency
  * @param int|float $amount
  *
  * @return mixed
  */
 public function Pay($currency = self::CURRENCY_USD, $amount = 0)
 {
     if ($this->_config == null) {
         return false;
     }
     if (func_num_args() != 0) {
         $this->_config->Money($currency, $amount);
     }
     return $this->_scenario->Pay($this->_config);
 }
 /**
  * @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;
 }