Help on new payment plugin

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 7 months ago #13235

You should check the function notify of the file components/com_hikashop/controllers/checkout.php
That's where your plugin should be called.

Maybe that's because of the code:
$payment = JRequest::getCmd('notif_payment');
Maybe you could try to add the line below before including the index.php in your php file:
$_REQUEST='ceca';

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 0
13 years 7 months ago #13240

Good morning,
I did that: placed traces within notify function and added the $_REQUEST element: no result. The program does NOT reach the notify function.

I also tried it without using the notify-ceca.php, but using the original URL: www.lagalera.org/hikashop/index.php?opti...pl=component&lang=es
It worked, entered notify function and so on.

So the problem is somewhere interpreting the notify-ceca.php script. My problem is that CECA provider does not store such a long URL within its parameters. That's because you offered that script as an alternative.

I wornder if other providers could also limit the URL length, so your proposal sounds good.
I am stuck. Any ideas?

As always, thanks a lot.
Emilio

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 7 months ago #13262

Could you try something like this in the notify-ceca.php :
<?php
$_GET='com_hikashop';
$_GET='component';
$_GET='checkout';
$_GET='notify';
$_GET='ceca';
$_GET='es';
$_REQUEST='com_hikashop';
$_REQUEST='component';
$_REQUEST='checkout';
$_REQUEST='notify';
$_REQUEST='ceca';
$_REQUEST='es';
include('index.php');

Also, are you on joomla 1.5 or joomla 1.6 ?

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 0
13 years 7 months ago #13263

done before: nothing.
Joomla 1.6 and Hikashop latest stable

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 7 months ago #13266

I see that the link you used is:
www.lagalera.org/hikashop/index.php?opti...pl=component&lang=es
but once opened in the browser, the link is :
www.lagalera.org/hikashop/index.php/en/?...pl=component&lang=es

So it seems that the language filter plugin of joomla does not recognize the lang parameter. Disabling that plugin should solve the problem. Can you confirm ?

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 0
13 years 7 months ago #13374

You, as usual, was right.
A summary:
Joomla 1.6. Languages: spanish (URL: es) and english (en), default: es.

Joomla 1.6 language filter disabled. Otherwise it does not work. However, it does when using the full url for notifying.

The notify-ceca.php MUST to be:

$_POST='com_hikashop';
$_POST='component';
$_POST='checkout';
$_POST='notify';
$_POST='ceca';
$_POST='es';

$_REQUEST='ceca';
$_REQUEST='com_hikashop';
$_REQUEST='component';
$_REQUEST='checkout';
$_REQUEST='notify';
$_REQUEST='ceca';
$_REQUEST='es';

in fact, it does not matter the lang parameter since it is not used.

Now the onPaymentNotification function is called. One question arises: since it was mandatory to disable the language filter plugin, that means that my site must be in one and only one language, right? It could be a problem in a multilingual site.

Now I am on the way to test and refactor the plugin. I'll share my progress with you!

THANK YOU a lot.

Emilio Arrufat

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 7 months ago #13411

That is indeed the case.

Another solution would be that your payment processor follow redirects or to build a way more complex notify-ceca.php file in order to not trigger the system plugins on the notification process.

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 0
13 years 2 months ago #26109

Hola,

Estoy terminando de hacer mi web en joomla 1.6, estoy buscando un componente de tienda virtual, pero me importa sobretodo la forma de pago, ya que tengo que realizarla a través de la pasarela CECA de Ibercaja.
Quería saber si el plugin que has desarrollado para tu web funciona bien para poder implementarlo en la mía. Si fueses tan amable de proporcionarmelo, o llegar a un acuerdo para poder adquirir este plugin.

Muchas gracias

I'm finishing my site in joomla 1.6, I'm looking for a component of store, but I do especially the form of payment, as I have to do it through the gateway Ibercaja CECA.
I wanted to know if the plugin you have developed for your website works well enough to implement it in mine. If you were so kind to provide the plugin, or agree to acquire this plugin.

thank you very much

Please Log in or Create an account to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum