Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

LightManager

Newbie
  
  • Posts

    3
  • Joined

  • Last visited

Everything posted by LightManager

  1. в файле qiwi.php есть функция: public function confirm() { $billId = null; $params = null; $bill = null; $successUrl = $this->url->link('checkout/success', '', true); $this->load->language('extension/payment/qiwi'); $this->load->model('extension/payment/qiwi'); $this->load->model('setting/setting'); $this->load->model('checkout/order'); $order = $this->model_checkout_order->getOrder($this->session->data['order_id']); $client = new Client($this->config->get('payment_qiwi_key_secret')); $params = [ 'amount' => $this->currency->format($order['total'], $order['currency_code'], $order['currency_value'], false), 'currency' => $this->session->data['currency'], 'comment' => $order['comment'], я так понимаю, она формируют запрос на сервер Киви. я изменил её: $tmpamount = $this->currency->format($order['total'], $order['currency_code'], $order['currency_value'], false); $params = [ 'amount' => $this->currency->convert($tmpamount, $order['currency_code'], 'RUB'), 'currency' => 'RUB', Наверное можно оформить красивей, но я не знаю пхп. Правильно я сделал? Вроде работает. До самой оплаты клиент везде видит его любимую валюту, пока не приходит уже на страницу банка.
  2. Да, разобрался, сделал. Просто вообще не шарю в PHP, но осилил Спасибо! Непонятно, почему, если вы принимаете только в рублях, не сделать это сразу.
  3. Парни, есть такой платёжный модуль https://www.opencart.com/index.php?route=marketplace/extension/info&member_token=N8B0zH1yOHloX8jVOLlkg7ubKwJo1Lyx&extension_id=36833 В чём проблема, QiWi принимает счёт только в рублях, но сайт мультивалютный. Реально его слегка переделать, чтоб при выставлении счёта валюта, выбранная пользователем автоматом пересчитывалась в рубли? Заранее спасибо.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.