Secure Trading Payment Gateway issue

  • Posts: 51
  • Thank you received: 0
8 years 5 months ago #241892

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.3
-- PHP version -- : 5.5.36
-- Browser(s) name and version -- : firefox 46.0.1

Have an issue with the payment gateway - all goes through ok but the order status is not updated from created to confirmed once payment has been authorised!

Have contacted Secure Trading and they say it should work - do you have any ideas why this isn't working?

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
8 years 5 months ago #241908

Hi,

Please note that we can't support payment plugins we didn't develop. You have to seek help with Secure Trading as they handle both the development of the payment plugin and the payment gateway. So they have all the keys to guide and help you.

What you're describing means that there must be a problem with the payment notification coming from the payment gateway.
We've done some documentation regarding that problem for the PayPal payment gateway:
www.hikashop.com/support/documentation/i...or.html#notification
So it could be a good base to debug the situation: check the debug data, the access log of the website, etc. Then with the clearer picture of the situation that you can provide to their support, they might be able to provide a better help.

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

  • Posts: 51
  • Thank you received: 0
8 years 5 months ago #243642

Hi Nicolas

I've been in contact with Secure Trading and haven't been able to get to the bottom of the issue we have been having. Secure Trading's module is only supported as far as Hikashop 2.1 but we are using Hikashop 2.6.3.

They say they have no plans to update their module anytime soon!

Would you be able to pm me details (ie costs etc) if we were to ask you to do some development on this to get it working for us?

Thanks

Last edit: 8 years 5 months ago by Bower.

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
8 years 5 months ago #243646

Hi,

The plugins are supposed to work the same since HikaShop 2.0.0. So I don't see why it would work with the 2.1 and not the 2.6.3
The problem is probably elsewhere.
Most of the time, it comes from something on the server side, like the plugin needing a connection to the payment gateway but the server doesn't allow outgoing connections etc.

We can have a go at it. We'll charge 60€ for each hour we spend on it. We can't give a fixed price as we don't know how the plugin works, how the code looks like, what is the API of the payment gateway, etc. So there are a lot of unkowns.
If you're ok with that, use our contact form and provide:
- a backend access to your website
- a FTP account
- the necessary test credentials to place orders on the website and pay them with your Secure Trading merchant account
- the necessary information to connect to your Secure Trading merchant account on their website
- a way to access your apache access log
- a link to this thread

www.hikashop.com/support/contact-us.html

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

  • Posts: 51
  • Thank you received: 0
8 years 4 months ago #244950

Hi Nicolas

Am still struggling getting the secure trading payment gateway to update the order status to confirmed. We have exhausted lines of communication with Secure Trading for the time being.

I've put a test site together on a different server with a different ISP and I am able to see better access logs.

194.74.4.166 - - [06/Jul/2016:14:36:01 +0100] "POST /index.php?option=com_hikashop&view=checkout&layout=notify&notif_payment=securetradingppages HTTP/1.1" 200 403 "-" "SecureTrading STPP Gateway"
176.35.203.55 - - [06/Jul/2016:14:36:01 +0100] "GET /index.php?option=com_hikashop&view=checkout&layout=notify&notif_payment=securetradingppages&errorcode=0&orderreference=14 HTTP/1.1" 302 293 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:47.0) Gecko/20100101 Firefox/47.0"
176.35.203.55 - - [06/Jul/2016:14:36:02 +0100] "GET /?option=com_hikashop&view=checkout&layout=after_end HTTP/1.1" 200 601429 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:47.0) Gecko/20100101 Firefox/47.0"

From this I am able to deduce that our server is getting notified from Secure Trading but does the 302 after the GET url mean that this is being redirected and thus the reason why the order status is not updating?

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
8 years 4 months ago #244965

Hi,

That access log is quite interesting.
The first log is a request from your payment gateway to the notification URL of your plugin:

194.74.4.166 - - [06/Jul/2016:14:36:01 +0100] "POST /index.php?option=com_hikashop&view=checkout&layout=notify&notif_payment=securetradingppages HTTP/1.1" 200 403 "-" "SecureTrading STPP Gateway"
That's the request you had to look for.
As it gives a 200 HTTP return code, it means that the request is successful, and thus if the payment plugin is properly coded, with the debug option activated it should add debug data in the payment log of the HikaShop configuration.
If the payment log is empty even though you have that log and the debug option is activated, there is a problem with the payment plugin code.

The second log is the redirection of the customer from the payment page to the website which also goes through the paymnet notification but only to redirect the customer to the after_end view (the thank you page). So that why you get a 302 redirect HTTP return code. So that's functioning properly.

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

  • Posts: 51
  • Thank you received: 0
8 years 3 months ago #246401

Hi

Got a bit further with Secure Trading - they had a bug in their module.
However I have have implemented the fix on a test site and our client's dev site on the same server - the test site works - the client's dev site doesn't! The order status still isn't being updated to confirmed!

I have tried switching all plugins off and testing - making sure all the settings in the two sites are identical - still no joy!

Both access logs are identical so i can't understand it.

Test site

194.74.4.166 - - [26/Jul/2016:13:28:51 +0100] "POST /test/index.php?option=com_hikashop&view=checkout&layout=notify&notif_payment=securetradingppages HTTP/1.0" 200 22 "-" "SecureTrading STPP Gateway"
176.35.203.55 - - [26/Jul/2016:13:28:52 +0100] "GET /test/index.php?option=com_hikashop&view=checkout&layout=notify&notif_payment=securetradingppages&errorcode=0&orderreference=33 HTTP/1.0" 302 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:47.0) Gecko/20100101 Firefox/47.0"

Client's dev site
194.74.4.166 - - [26/Jul/2016:13:49:21 +0100] "POST /index.php?option=com_hikashop&view=checkout&layout=notify&notif_payment=securetradingppages HTTP/1.0" 200 107 "-" "SecureTrading STPP Gateway"
176.35.203.55 - - [26/Jul/2016:13:49:22 +0100] "GET /index.php?option=com_hikashop&view=checkout&layout=notify&notif_payment=securetradingppages&errorcode=0&orderreference=71 HTTP/1.0" 302 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:47.0) Gecko/20100101 Firefox/47.0"

Any suggestions as to what I can do next?

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
8 years 3 months ago #246428

Hi,

It will be the same answer from me:
You get the payment notification in your server and it returns a success HTTP code.
So if you activate the debug setting of the payment method, you should see debug data in the payment log which will help us tell you what is the problem.

Without any payment log, we can only say that there is either a problem in the code of the plugin or in the settings of the plugin.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum