/** * @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); }