[Skip to main content](#vessel-content)

#   Ipay88 onPaymentNotification does not run

##

- **[haur0214](/forum/user/39931-haur0214 "View haur0214's Profile")**
- [![haur0214's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39931-haur0214 "View haur0214's Profile") Topic Author
- [ Offline](/forum/user/39931-haur0214)

Less More

- Posts: 29
- Thank you received: 1
-
-

10 years 7 months ago -  10 years 7 months ago [\#238309](#238309) by [haur0214](/forum/user/39931-haur0214 "View haur0214's Profile")  *[Ipay88 onPaymentNotification does not run](/forum/29-payment-methods/884167-ipay88-onpaymentnotification-does-not-run#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  and notify url is  Can we get some help about this? Thanks a lot.")* was created by *[haur0214](/forum/user/39931-haur0214 "View haur0214's Profile")*

-- 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 Code:

$return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id='.$order-&gt;order_id . $this-&gt;url_itemid . $this-&gt;url_itemid;

and notify url is Code:

$notify_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment='.$this-&gt;name.'&amp;tmpl=component&amp;lang='.$this-&gt;locale . $this-&gt;url_itemid;

Can we get some help about this?
Thanks a lot.

Last edit: 10 years 7 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile"). Reason: adding code tags

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQxNjctaXBheTg4LW9ucGF5bWVudG5vdGlmaWNhdGlvbi1kb2VzLW5vdC1ydW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

10 years 7 months ago [\#238332](#238332) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Ipay88 onPaymentNotification does not run](/forum/29-payment-methods/884167-ipay88-onpaymentnotification-does-not-run#238332 "-- 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  and notify url is  Can we get some help about this? Thanks a lot.")*

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](https://www.hikashop.com/support/documentation/integrated-documentation/10-hikashop/33-hikashop-payment-paypal-error.html#notification)
It might contain a clue for your problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQxNjctaXBheTg4LW9ucGF5bWVudG5vdGlmaWNhdGlvbi1kb2VzLW5vdC1ydW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[haur0214](/forum/user/39931-haur0214 "View haur0214's Profile")**
- [![haur0214's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39931-haur0214 "View haur0214's Profile") Topic Author
- [ Offline](/forum/user/39931-haur0214)

Less More

- Posts: 29
- Thank you received: 1
-
-

10 years 7 months ago [\#238458](#238458) by [haur0214](/forum/user/39931-haur0214 "View haur0214's Profile")  Replied by *[haur0214](/forum/user/39931-haur0214 "View haur0214's Profile")* on topic *[Ipay88 onPaymentNotification does not run](/forum/29-payment-methods/884167-ipay88-onpaymentnotification-does-not-run#238458 "-- 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  and notify url is  Can we get some help about this? Thanks a lot.")*

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. Code:

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!

- [ ![threetimes.png](/forum/attachment/31080) ](/forum/attachment/31080 "threetimes.png") [ ](/forum/attachment/31080?download=1 "threetimes.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQxNjctaXBheTg4LW9ucGF5bWVudG5vdGlmaWNhdGlvbi1kb2VzLW5vdC1ydW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

10 years 7 months ago [\#238484](#238484) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Ipay88 onPaymentNotification does not run](/forum/29-payment-methods/884167-ipay88-onpaymentnotification-does-not-run#238484 "-- 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  and notify url is  Can we get some help about this? Thanks a lot.")*

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](/forum/user/39931-haur0214 "View haur0214's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQxNjctaXBheTg4LW9ucGF5bWVudG5vdGlmaWNhdGlvbi1kb2VzLW5vdC1ydW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.060 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
