Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
PK���[�X���� check.phpnu�[���<?php
/**
* @package HikaShop for Joomla!
* @version 4.4.1
* @author hikashop.com
* @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
class plgHikashoppaymentCheck extends hikashopPaymentPlugin {
var $name = 'check';
var $multiple = true;
var $pluginConfig = array(
'order_status' => array('ORDER_STATUS',
'orderstatus'),
'status_notif_email' =>
array('ORDER_STATUS_NOTIFICATION', 'boolean',
'0'),
'return_url' => array('RETURN_URL',
'input'),
'information' => array('CHECK_INFORMATION',
'wysiwyg')
);
public function onAfterOrderConfirm(&$order, &$methods,
$method_id) {
parent::onAfterOrderConfirm($order, $methods, $method_id);
$method =& $methods[$method_id];
$this->modifyOrder($order->order_id,
$method->payment_params->order_status,
(bool)@$method->payment_params->status_notif_email, false);
$this->removeCart = true;
$this->information = $method->payment_params->information;
if(preg_match('#^[a-z0-9_]*$#i',$this->information)) {
$this->information = JText::_($this->information);
}
$currencyClass = hikashop_get('class.currency');
$this->amount = $currencyClass->format($order->order_full_price,
$order->order_currency_id);
$this->order_number = $order->order_number;
return $this->showPage('end');
}
public function getPaymentDefaultValues(&$element) {
$element->payment_name = 'Check';
$element->payment_description = 'You can pay by sending us a
check.';
$element->payment_images = 'Check';
$element->payment_params->order_status = 'created';
$element->payment_params->information = 'You can make out your
check to: XXXX XXXX<br/>
<br/>
And then, send your check to the address below :<br/>
<br/>
XXXXXX XXXXXX<br/>
<br/>
XX XXXX XXXXXX<br/>
<br/>
XXXXX XXXXXXX<br/>
<br/>
Once we receive it, we will confirm your order.';
}
}
PK���[�-��� check.xmlnu�[���<?xml
version="1.0" encoding="utf-8"?>
<extension type="plugin" version="2.5"
method="upgrade" group="hikashoppayment">
<name>Hikashop Check Payment Plugin</name>
<creationDate>12 février 2021</creationDate>
<version>4.4.1</version>
<author>Hikashop</author>
<authorEmail>dev@hikashop.com</authorEmail>
<authorUrl>http://www.hikashop.com</authorUrl>
<copyright>(C) 2010-2021 HIKARI SOFTWARE. All rights
reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html
GNU/GPL</license>
<description>This plugin enables you to setup your Check payment
system</description>
<files>
<filename plugin="check">check.php</filename>
<filename>check_end.php</filename>
</files>
<params addpath="/components/com_hikashop/params">
<param name="pluginoptions" type="pluginoptions"
default="plugin" label="hikashop"
description="HikaShop options" />
</params>
<config>
<fields name="params"
addfieldpath="/components/com_hikashop/fields">
<fieldset name="basic">
<field id="pluginoptions" name="pluginoptions"
type="pluginoptions" label="hikashop"
description="HikaShop options" />
</fieldset>
</fields>
</config>
</extension>
PK���[ү``��
check_end.phpnu�[���<?php
/**
* @package HikaShop for Joomla!
* @version 4.4.1
* @author hikashop.com
* @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><div class="hikashop_check_end"
id="hikashop_check_end">
<span class="hikashop_check_end_message"
id="hikashop_check_end_message">
<?php
echo JText::_('ORDER_IS_COMPLETE').'<br/>'.
JText::sprintf('PLEASE_SEND_CHECK',$this->amount).'<br/>'.
$this->information.'<br/>'.
JText::sprintf('INCLUDE_ORDER_NUMBER_TO_CHECK',$this->order_number).'<br/>'.
JText::_('THANK_YOU_FOR_PURCHASE');?>
</span>
</div>
<?php
if(!empty($this->payment_params->return_url)){
$doc = JFactory::getDocument();
$doc->addScriptDeclaration("window.hikashop.ready( function()
{window.location='".$this->payment_params->return_url."'});");
}
PK���[�#o,,
index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[�X���� check.phpnu�[���PK���[�-��� check.xmlnu�[���PK���[ү``��
�check_end.phpnu�[���PK���[�#o,,
�index.htmlnu�[���PK)