Skip to content

Commit

Permalink
Merge pull request #2 from RBAtkins0n/master
Browse files Browse the repository at this point in the history
3.0.2 - Fix order reference
  • Loading branch information
appinlet authored Sep 11, 2018
2 parents b2ca390 + c9918f8 commit cdb678f
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 80 deletions.
7 changes: 1 addition & 6 deletions upload/admin/controller/extension/payment/paygate.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2018 PayGate (Pty) Ltd
*
* Author: App Inlet (Pty) Ltd
*
*
* Released under the GNU General Public License
*/
class ControllerExtensionPaymentPaygate extends Controller
Expand All @@ -14,16 +14,12 @@ class ControllerExtensionPaymentPaygate extends Controller
public function index()
{
$this->load->language( 'extension/payment/paygate' );

$this->document->setTitle( $this->language->get( 'heading_title' ) );

$this->load->model( 'setting/setting' );

if ( ( $this->request->server['REQUEST_METHOD'] == 'POST' ) && $this->validate() ) {
$this->model_setting_setting->editSetting( 'payment_paygate', $this->request->post );

$this->session->data['success'] = $this->language->get( 'text_success' );

$this->response->redirect( $this->url->link( 'marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=payment', true ) );
}

Expand Down Expand Up @@ -78,7 +74,6 @@ public function index()
);

$data['action'] = $this->url->link( 'extension/payment/paygate', 'user_token=' . $this->session->data['user_token'], true );

$data['cancel'] = $this->url->link( 'marketplace/extension', 'user_token=' . $this->session->data['user_token'] . '&type=payment', true );

if ( isset( $this->request->post['payment_paygate_total'] ) ) {
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/language/en-gb/extension/payment/paygate.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
$_['help_total'] = 'The checkout total the order must reach before this payment method becomes active.';

// Error
$_['error_permission'] = 'Warning: You do not have permission to modify the PayGate payment method!';
$_['error_permission'] = 'Warning: You do not have permission to modify the PayGate payment method!';
Empty file modified upload/admin/view/image/payment/paygate.gif
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions upload/admin/view/template/extension/payment/paygate.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{#
# Copyright (c) 2018 PayGate (Pty) Ltd
#
# Author: App Inlet (Pty) Ltd
#
# Released under the GNU General Public License
#}
{{ header }}{{ column_left }}
<div id="content">
<div class="page-header">
Expand Down
Loading

0 comments on commit cdb678f

Please sign in to comment.