Ipay88 onPaymentNotification does not run

  • Posts: 29
  • Thank you received: 1
8 years 6 months ago #238309

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.1
-- Browser(s) name and version -- : Google Chrome

Hi Support,

We are trying to integrate a new payment gateway IPAY88 with hikahop.
We did receive data from Ipay88 after the transaction is done.
However, We found out our plugin does not trigger onPaymentNotification.
We do not know if it is the return url or notify url is wrong.
We preset the return url as

$return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id='.$order->order_id . $this->url_itemid . $this->url_itemid;
and notify url is
$notify_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment='.$this->name.'&tmpl=component&lang='.$this->locale . $this->url_itemid;
Can we get some help about this?
Thanks a lot.

Last edit: 8 years 6 months ago by nicolas. Reason: adding code tags

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

  • Posts: 82866
  • Thank you received: 13373
  • MODERATOR
8 years 6 months ago #238332

Hi,

This looks fine.
So if you don't get a notification it could come from many things:
- your website is not accessible for guests (and thus the payment gateway can't send the notification to your website)
- the $name variable is not set correctly
- you get the notification but there is a bug in the onPaymentNotification function code which makes the process crash.
etc
If you can provide the code of your plugin, we could have a look at what you've done and tell you more precisely if the problem is with your code or your test environment.

Notifications not being received can come from many things even for a plugin that you know is code properly.
For example, we have this documentation for our PayPal plugin, which lists all the things to check:
www.hikashop.com/support/documentation/i...or.html#notification
It might contain a clue for your problem.

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

  • Posts: 29
  • Thank you received: 1
8 years 6 months ago #238458

Hi Nicolas,

Thanks for your advise.
The plugin is working now.
But, when we return from payment gateway to our website, we get following message.

Thank you for your purchase.
GOOGLE_ACCOUNT_ID_INVALID

And also, we found out the history of order update certain order three times with history reason
"automatic payment notification received".
Is it a bug or is there anyway to solve this problem?
Thanks!

Attachments:

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

  • Posts: 82866
  • Thank you received: 13373
  • MODERATOR
8 years 6 months ago #238484

Hi,

1. This means that you have the HikaShop google analytics plugin enabled but not configured correctly.

2. It's not a bug in HikaShop. It means that your payment gateway is sending the payment notification several times.
So there are two things to check with your payment plugin:
- Make sure that you don't have to return a specific message in the onPaymentNotification function of your plugin so that the payment gateway knows that the notification was successful. Some payment gateways, when they don't get such answer will try to resend the notification later on.
- Before confirming the order in your plugin, add a check so that if the order is already in the confirmed status, you don't call modifyOrder.

The following user(s) said Thank You: haur0214

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

Time to create page: 0.062 seconds
Powered by Kunena Forum