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

#   Error with hikashop and firstdata

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

7 years 8 months ago [\#304689](#304689) by [ryanbass](/forum/user/58177-ryanbass "View ryanbass's Profile")  *[Error with hikashop and firstdata](/forum/27-checkout/897101-error-with-hikashop-and-firstdata#304689 "Hi. We haven't updated anything all was working fine for all this time, but not for last days our checkout process takes 1-2 minutes to get to first data payment.  I enabled debug mode to see if we have any errors to start excluding things out..  1. Either it's our server ( again no updates or changes in Joomla ). Everything was fine for last year. 2. Either First Data has changed something.. 3. Some code issue.")* was created by *[ryanbass](/forum/user/58177-ryanbass "View ryanbass's Profile")*

Hi. We haven't updated anything all was working fine for all this time, but not for last days our checkout process takes 1-2 minutes to get to first data payment.

I enabled debug mode to see if we have any errors to start excluding things out..

1. Either it's our server ( again no updates or changes in Joomla ). Everything was fine for last year.
2. Either First Data has changed something..
3. Some code issue.
Code:

Notice: Undefined variable: order in /var/www/html/plugins/hikashoppayment/firstdata/firstdata.php on line 26 Notice: Trying to get property of non-object in /var/www/html/plugins/hikashoppayment/firstdata/firstdata.php on line 26 Notice: Undefined property: plgHikashoppaymentFirstdata::$url_itemid in /var/www/html/plugins/hikashoppayment/firstdata/firstdata.php on line 26 Notice: Undefined variable: order in /var/www/html/plugins/hikashoppayment/firstdata/firstdata.php on line 28 Notice: Trying to get property of non-object in /var/www/html/plugins/hikashoppayment/firstdata/firstdata.php on line 28 Notice: Undefined property: plgHikashoppaymentFirstdata::$url_itemid in /var/www/html/plugins/hikashoppayment/firstdata/firstdata.php on line 28

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzEwMS1lcnJvci13aXRoLWhpa2FzaG9wLWFuZC1maXJzdGRhdGE/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: 86587
- Thank you received: 14326
-
-

7 years 8 months ago [\#304690](#304690) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error with hikashop and firstdata](/forum/27-checkout/897101-error-with-hikashop-and-firstdata#304690 "Hi. We haven't updated anything all was working fine for all this time, but not for last days our checkout process takes 1-2 minutes to get to first data payment.  I enabled debug mode to see if we have any errors to start excluding things out..  1. Either it's our server ( again no updates or changes in Joomla ). Everything was fine for last year. 2. Either First Data has changed something.. 3. Some code issue.")*

Hi,

First, it would be great that you provide your HikaShop version number.
Right now, we don't know, so we're not sure what you have on the lines of these notices in that file plugins/hikashoppayment/firstdata/firstdata.php

The Firstdata plugin require connecting to an external server (the Firstdata server) for the payment.
So it could be something that changed on your hosting plan not allowing outgoing connections.
It could also be a problem on Firstdata's end.
It could be totally unrelated to Firstdata and be for example an issue with the sending of the emails (if the sending of the email fails it might wait for a response from the email server and only continue the processing after that).
It could be many things. So you'll have to rule out possibilities. For example, try a checkout with the "bank transfer" payment method. If you don't have the issue, then it's not linked to the emails.

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

7 years 8 months ago [\#304966](#304966) by [ryanbass](/forum/user/58177-ryanbass "View ryanbass's Profile")  Replied by *[ryanbass](/forum/user/58177-ryanbass "View ryanbass's Profile")* on topic *[Error with hikashop and firstdata](/forum/27-checkout/897101-error-with-hikashop-and-firstdata#304966 "Hi. We haven't updated anything all was working fine for all this time, but not for last days our checkout process takes 1-2 minutes to get to first data payment.  I enabled debug mode to see if we have any errors to start excluding things out..  1. Either it's our server ( again no updates or changes in Joomla ). Everything was fine for last year. 2. Either First Data has changed something.. 3. Some code issue.")*

Code:

// The constructor is optional if you don't need to initialize some parameters of some fields of the configuration and not that it can also be done in the getPaymentDefaultValues function as you will see later on public function __construct(&amp;$subject, $config) { // This is the cancel URL of HikaShop that should be given to the payment gateway so that it can redirect to it when the user cancel the payment on the payment gateway page. That URL will automatically cancel the order of the user and redirect him to the checkout so that he can choose another payment method $this-&gt;pluginConfig['cancel_url'][2] = HIKASHOP_LIVE . 'index.php?option=com_hikashop&amp;ctrl=order&amp;task=cancel_order&amp;order_id=' . $order-&gt;order_id . $this-&gt;url_itemid; // This is the "thank you" or "return" URL of HikaShop that should be given to the payment gateway so that it can redirect to it when the payment of the user is valid. That URL will reinit some variables in the session like the cart and will then automatically redirect to the "return_url" parameter $this-&gt;pluginConfig['return_url'][2] = 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 is the "notification" URL of HikaShop that should be given to the payment gateway so that it can send a request to that URL in order to tell HikaShop that the payment has been done (sometimes the payment gateway doesn't do that and passes the information to the return URL, in which case you need to use that notification URL as return URL and redirect the user to the HikaShop return URL at the end of the onPaymentNotification function) $this-&gt;pluginConfig['notify_url'][2] = HIKASHOP_LIVE . 'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=' . $this-&gt;name . '&amp;tmpl=component&amp;lang=ru-RU&amp;language=ru-RU'; return parent::__construct($subject, $config); }

version: 3.3.0

Error is on cancel url and return url ( from errors I mentioned ).

We still have the issue with long waiting time until it connects to FirstData.

Bank method with payment was good. No issues with that, fast loading and all good.

Any other tips?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzEwMS1lcnJvci13aXRoLWhpa2FzaG9wLWFuZC1maXJzdGRhdGE/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: 86587
- Thank you received: 14326
-
-

7 years 8 months ago [\#304969](#304969) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error with hikashop and firstdata](/forum/27-checkout/897101-error-with-hikashop-and-firstdata#304969 "Hi. We haven't updated anything all was working fine for all this time, but not for last days our checkout process takes 1-2 minutes to get to first data payment.  I enabled debug mode to see if we have any errors to start excluding things out..  1. Either it's our server ( again no updates or changes in Joomla ). Everything was fine for last year. 2. Either First Data has changed something.. 3. Some code issue.")*

Hi

Here is what is in the file plugins/hikashoppayment/firstdata/firstdata.php of HikaShop 3.3.0:
[ monosnap.com/file/flYVWhAxpTBSybFMXOoqq88OvzlBnl](https://monosnap.com/file/flYVWhAxpTBSybFMXOoqq88OvzlBnl)
It has nothing to do with the code you posted and it cannot generate the notice messages that you pasted in your first message.
So I don't understand how you can have what you posted in that file.
Could you please double check ?
In fact, even with HikaShop 4.0.3, the same code as in my screenshot is in that file. So I'm surprised you would get some code which has nothing to do with what we have on our end.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzEwMS1lcnJvci13aXRoLWhpa2FzaG9wLWFuZC1maXJzdGRhdGE/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.058 seconds

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