Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Fix generate url with https
Browse files Browse the repository at this point in the history
  • Loading branch information
regdos committed Feb 17, 2017
1 parent cc17a36 commit d9fd944
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.1.3
* Fix generate url with https

## 3.1.2
* Fix table create

Expand Down
11 changes: 5 additions & 6 deletions upload/catalog/controller/payment/payu.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*
* ver. 3.1.1
* ver. 3.1.3
* PayU Payment Modules
*
* @copyright Copyright 2016 by PayU
Expand All @@ -19,7 +19,7 @@ class ControllerPaymentPayU extends Controller

const PAY_BUTTON = 'https://static.payu.com/pl/standard/partners/buttons/payu_account_button_01.png';

const VERSION = '3.1.2';
const VERSION = '3.1.3';

private $ocr = array();
private $totalWithoutDiscount = 0;
Expand All @@ -40,7 +40,7 @@ private function loadLibConfig()
public function index()
{
$data['payu_button'] = self::PAY_BUTTON;
$data['action'] = $this->url->link('payment/payu/pay');
$data['action'] = $this->url->link('payment/payu/pay', '', true);

if ($this->isVersion22()) {
return $this->load->view('payment/payu', $data);
Expand Down Expand Up @@ -185,11 +185,10 @@ private function buildOrder()

//OCR basic data
$this->ocr['merchantPosId'] = OpenPayU_Configuration::getMerchantPosId();
$this->ocr['orderUrl'] = $this->url->link('payment/payu/callback') . '?order=' . $order_info['order_id'];
$this->ocr['description'] = $this->language->get('text_payu_order') . ' #' . $order_info['order_id'];
$this->ocr['customerIp'] = $this->getIP($order_info['ip']);
$this->ocr['notifyUrl'] = $this->url->link('payment/payu/ordernotify');
$this->ocr['continueUrl'] = $this->url->link('checkout/success');
$this->ocr['notifyUrl'] = $this->url->link('payment/payu/ordernotify', '', true);
$this->ocr['continueUrl'] = $this->url->link('checkout/success', '', true);
$this->ocr['currencyCode'] = $order_info['currency_code'];
$this->ocr['totalAmount'] = $this->toAmount(
$this->currencyFormat($order_info['total'], $order_info['currency_code'])
Expand Down

0 comments on commit d9fd944

Please sign in to comment.