| Server IP : 87.98.231.4 / Your IP : 216.73.217.37 [ Web Server : Apache System : Linux webm007.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : grupmartgn ( 667608) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/grupmartgn/elanartcrafts/plugins/vmpayment/klikandpay/klikandpay/fields/ |
Upload File : |
<?php
defined("_JEXEC") or die("Direct Access to " . basename(__FILE__) . "is not allowed.");
/**
*
* @package VirtueMart
* @subpackage Plugins _ Elements
* @author Valérie Isaksen
* @package VirtueMart
* @copyright Copyright (c) 2004 - 2012 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: $
*/
/**
* Account set up >Set up > URL transaction accepted
* http://mywebsite.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&po=
*
* Account set up >Set up > URL refused/cancelled transaction
* http://mywebsite.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginUserPaymentCancel&po=
*
* * Account set up > Dynamic Set up > Dynamic return URL
* http://mywebsite.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component&po=
*/
jimport('joomla.form.formfield');
class JFormFieldUrls extends JFormField {
/**
* Element name
*
* @access protected
* @var string
*/
var $type = "urls";
function getInput() {
$dynamic_url = JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component&po=';
$accepted_url = JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&po=';
$refused_url = JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginUserPaymentCancel&po=';
$msg = "";
$msg .= '<div>';
$msg .= "<strong>" . vmText::_('VMPAYMENT_KLIKANDPAY_CONF_DYNAMIC_RETURN_URL') . "</strong>";
$msg .= "<br />";
$msg .= vmText::_('VMPAYMENT_KLIKANDPAY_CONF_DYNAMIC_RETURN_URL_TIP');
$msg .= "<br />";
$msg .= '<input class="required" readonly size="180" value="' . $dynamic_url . '" />';
$msg .= "</div>";
$msg .= '<div style="margin-top: 10px ;">';
$msg .= "<strong>" . vmText::_('VMPAYMENT_KLIKANDPAY_CONF_URL_TRANSACTION_ACCEPTED') . "</strong>";
$msg .= "<br />";
$msg .= vmText::_('VMPAYMENT_KLIKANDPAY_CONF_URL_TRANSACTION_ACCEPTED_TIP');
$msg .= "<br />";
$msg .= '<input class="required" readonly size="180" value="' . $accepted_url . '" />';
$msg .= "</div>";
$msg .= '<div style="margin-top: 10px ;">';
$msg .= "<strong>" . vmText::_('VMPAYMENT_KLIKANDPAY_CONF_URL_TRANSACTION_REFUSED') . "</strong>";
$msg .= "<br />";
$msg .= vmText::_('VMPAYMENT_KLIKANDPAY_CONF_URL_TRANSACTION_REFUSED_TIP');
$msg .= "<br />";
//$msg .= $refused_url ;
$msg .= '<input class="required" readonly size="180" value="' . $refused_url . '" />';
$msg .= "</div>";
return $msg;
}
}