Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

LightManager

Новичок
  
  • Posts

    3
  • Joined

  • Last visited

LightManager's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  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.