Guest
03 May 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

Last Modified: 05 May 2016


Sergey
Total posts: 13,730
05 May 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.

Replay Topic
Uploading
Click here to upload and insert file from you hard drive: (png, gif, jpg, jpeg, zip, txt, rar)
Powered by Cobalt