Гость
03 Май 2016 10:01

What is the URL used for paypal IPN?

I have an also version of the system that uses : domainname/index.php?option=com_jcs&task=pay&processor=.paypal&order_id=4&amount=30&pay=ipn

I need to map this to the new Emeral9 URL used?

Thanks

Shaun

Последние изменения: 26 Авг 2022


Sergey
Total posts: 13,748
05 Май 2016 14:58

After update, you have to replace content of the components/com_jcs/jcs.php with

<?php
/**
 * Emerald by MintJoomla
 * a component for Joomla! 1.7 CMS ( http://www.joomla.org )
 * Author Website:  http://www.mintjoomla.com/ 
 * @copyright Copyright (C) 2012 MintJoomla ( http://www.mintjoomla.com ). All rights reserved.
 * @license GNU/GPL  http://www.gnu.org/copyleft/gpl.html 
 */
defined('_JEXEC') or die('Restricted access');
jimport('joomla.mail.helper');
jimport('joomla.mail.mail');
jimport('joomla.filesystem.file');
jimport('joomla.application.component.model');
jimport('joomla.database.table');

require_once (JPATH_ROOT.'/components/com_emerald/controller.php');
require_once (JPATH_ROOT.'/components/com_emerald/controllers/plans.php');
require_once (JPATH_ROOT.'/administrator/components/com_emerald/controllers/cnf.php');
EmeraldControllerCnf::initialyze();

JTable::addIncludePath(JPATH_ROOT.'/administrator/components/com_emerald/tables');
JModel::addIncludePath(JPATH_ROOT.'/components/com_emerald/models');

require_once (JPATH_ROOT.'/administrator/components/com_emerald/helpers/emerald.php');

$app = JFactory::getApplication();

if($app->input->get('pay') == 'ipn' && $app->input->get('task') == 'pay')
{
    $app->input->set('processor', 'paypal');

    $controller = new EmeraldControllerPlans();
    $controller->create();
}

This will trigger new emerald routine.


killersmile
Total posts: 121
26 Авг 2022 12:31

Interesting site i love it keep posting more! Click here

Работает на Cobalt