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

#   Paypal Sandbox connection failed

##

- **[boliveira](/forum/user/35423-boliveira "View boliveira's Profile")**
- [![boliveira's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35423.jpg)](/forum/user/35423-boliveira "View boliveira's Profile") Topic Author
- [ Offline](/forum/user/35423-boliveira)

Less More

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

11 years 10 months ago [\#183573](#183573) by [boliveira](/forum/user/35423-boliveira "View boliveira's Profile")  *[Paypal Sandbox connection failed](/forum/29-payment-methods/873704-paypal-sandbox-connection-failed#183573 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Paypal Sandbox connection failed  Hello,  I know that there are a lot of topics on the forum about this problem but i am really struggling to overcome it.  I used virtuemart on a lot of webstores that i made, but now i wanted to try hikashop for the first time on a new webstore i am doing, to see if it is worth buying the business edition. Everything was going ok until i got to the paypal module.  I am using the Paypal sandbox to test the hikashop paypal module. Everything is working great but after paying on the paypal gateway the order don't update to confirmed status and i receive the following emails from hikashop:  From the documentation and the orther posts on the forum with similar issues i contacted the hosting company to see if Openssl was compiled and that they allowed the use of the fsockopen funcion on PHP. They said that openssl was installed and the use of fsock function to make remote connection was allowed.  To test if they said was true, i created the following PHP script to test the fsockopen funcion:  After running this code from the server i ger the GOOD output meaning that the fsockopen function is working great.  Inspecting the hikashop paypal module source code i don't understand why the following piece of code is returning always a null value:  I activated the hikashop paypal module debug but the log is empty, so i checked the apache access log and i saw the following entries:  173.0.82.126 - - &#91;15/Dec/2014:21:21:11 +0000&#93; &quot;POST /shop/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=paypal&amp;tmpl=component&amp;lang=en&amp;Itemid=990 HTTP/1.0&quot; 404 - &quot;-&quot; &quot;PayPal IPN (   www.paypal.com/ipn  )&quot;  But i am in doubt that the 404 access code is related to the above problem, because i removed the order from the hikashop after it failed with paypal.  Also on the paypal sandbox i can see that the payment was transferred from the buyer to the shop account successfully.  Any help would be appreciated.  Thanks, Bruno")* was created by *[boliveira](/forum/user/35423-boliveira "View boliveira's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Paypal Sandbox connection failed

Hello,

I know that there are a lot of topics on the forum about this problem but i am really struggling to overcome it.

I used virtuemart on a lot of webstores that i made, but now i wanted to try hikashop for the first time on a new webstore i am doing, to see if it is worth buying the business edition. Everything was going ok until i got to the paypal module.

I am using the Paypal sandbox to test the hikashop paypal module. Everything is working great but after paying on the paypal gateway the order don't update to confirmed status and i receive the following emails from hikashop:

> A Paypal notification was refused because the connection to the confirmation server failed.

From the documentation and the orther posts on the forum with similar issues i contacted the hosting company to see if Openssl was compiled and that they allowed the use of the fsockopen funcion on PHP. They said that openssl was installed and the use of fsock function to make remote connection was allowed.

To test if they said was true, i created the following PHP script to test the fsockopen funcion:
Code:

&lt;?php $host = "www.paypal.com"; $fp = fsockopen("ssl://".$host, 443, $errno, $errstr, 30); if ($fp) { print "GOOD"; } else { print "BAD"; } ?&gt;

After running this code from the server i ger the GOOD output meaning that the fsockopen function is working great.

Inspecting the hikashop paypal module source code i don't understand why the following piece of code is returning always a null value:
Code:

$fp = fsockopen($url['host_socket'], $url['port'], $errno, $errstr, 30); if(!$fp) ....

I activated the hikashop paypal module debug but the log is empty, so i checked the apache access log and i saw the following entries:

173.0.82.126 - - [15/Dec/2014:21:21:11 +0000] "POST /shop/index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=paypal&amp;tmpl=component&amp;lang=en&amp;Itemid=990 HTTP/1.0" 404 - "-" "PayPal IPN ( [ www.paypal.com/ipn](https://www.paypal.com/ipn) )"

But i am in doubt that the 404 access code is related to the above problem, because i removed the order from the hikashop after it failed with paypal.

Also on the paypal sandbox i can see that the payment was transferred from the buyer to the shop account successfully.

Any help would be appreciated.

Thanks,
Bruno

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzM3MDQtcGF5cGFsLXNhbmRib3gtY29ubmVjdGlvbi1mYWlsZWQ/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 10 months ago [\#183593](#183593) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Paypal Sandbox connection failed](/forum/29-payment-methods/873704-paypal-sandbox-connection-failed#183593 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Paypal Sandbox connection failed  Hello,  I know that there are a lot of topics on the forum about this problem but i am really struggling to overcome it.  I used virtuemart on a lot of webstores that i made, but now i wanted to try hikashop for the first time on a new webstore i am doing, to see if it is worth buying the business edition. Everything was going ok until i got to the paypal module.  I am using the Paypal sandbox to test the hikashop paypal module. Everything is working great but after paying on the paypal gateway the order don't update to confirmed status and i receive the following emails from hikashop:  From the documentation and the orther posts on the forum with similar issues i contacted the hosting company to see if Openssl was compiled and that they allowed the use of the fsockopen funcion on PHP. They said that openssl was installed and the use of fsock function to make remote connection was allowed.  To test if they said was true, i created the following PHP script to test the fsockopen funcion:  After running this code from the server i ger the GOOD output meaning that the fsockopen function is working great.  Inspecting the hikashop paypal module source code i don't understand why the following piece of code is returning always a null value:  I activated the hikashop paypal module debug but the log is empty, so i checked the apache access log and i saw the following entries:  173.0.82.126 - - &#91;15/Dec/2014:21:21:11 +0000&#93; &quot;POST /shop/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=paypal&amp;tmpl=component&amp;lang=en&amp;Itemid=990 HTTP/1.0&quot; 404 - &quot;-&quot; &quot;PayPal IPN (   www.paypal.com/ipn  )&quot;  But i am in doubt that the 404 access code is related to the above problem, because i removed the order from the hikashop after it failed with paypal.  Also on the paypal sandbox i can see that the payment was transferred from the buyer to the shop account successfully.  Any help would be appreciated.  Thanks, Bruno")*

Hi,

That's strange because your message indicates two different reasons for your problem:
1. if the fsockopen of hikashop returns null and if yours work, the only different is with the $url
which comes from the "URL" parameter that you set in the options of your paypal payment method options screen. So make sure that the URL there is correct, without spaces before or after, etc.

2. The 404 error indicates that something on your website blocked the notification before it reached HikaShop (so I don't know how you were able to get the email and look at the result of the fsockopen since it first requires that the notification reaches hikashop). That's often the case if you set the menu item with the id 990 access to something different than public, or if that menu item is not a hikashop type menu item. In that case, a simple solution is to create a menu item of the type hikashop checkout (if not already there) via the joomla menu manager and set the "force menu on checkout" option of the HikaShop configuration to that menu item so that the Joomla SEF system doesn't mess with the notification.

The following user(s) said Thank You: [boliveira](/forum/user/35423-boliveira "View boliveira's Profile")

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

- **[boliveira](/forum/user/35423-boliveira "View boliveira's Profile")**
- [![boliveira's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35423.jpg)](/forum/user/35423-boliveira "View boliveira's Profile") Topic Author
- [ Offline](/forum/user/35423-boliveira)

Less More

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

11 years 10 months ago [\#183675](#183675) by [boliveira](/forum/user/35423-boliveira "View boliveira's Profile")  Replied by *[boliveira](/forum/user/35423-boliveira "View boliveira's Profile")* on topic *[Paypal Sandbox connection failed](/forum/29-payment-methods/873704-paypal-sandbox-connection-failed#183675 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Paypal Sandbox connection failed  Hello,  I know that there are a lot of topics on the forum about this problem but i am really struggling to overcome it.  I used virtuemart on a lot of webstores that i made, but now i wanted to try hikashop for the first time on a new webstore i am doing, to see if it is worth buying the business edition. Everything was going ok until i got to the paypal module.  I am using the Paypal sandbox to test the hikashop paypal module. Everything is working great but after paying on the paypal gateway the order don't update to confirmed status and i receive the following emails from hikashop:  From the documentation and the orther posts on the forum with similar issues i contacted the hosting company to see if Openssl was compiled and that they allowed the use of the fsockopen funcion on PHP. They said that openssl was installed and the use of fsock function to make remote connection was allowed.  To test if they said was true, i created the following PHP script to test the fsockopen funcion:  After running this code from the server i ger the GOOD output meaning that the fsockopen function is working great.  Inspecting the hikashop paypal module source code i don't understand why the following piece of code is returning always a null value:  I activated the hikashop paypal module debug but the log is empty, so i checked the apache access log and i saw the following entries:  173.0.82.126 - - &#91;15/Dec/2014:21:21:11 +0000&#93; &quot;POST /shop/index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=paypal&amp;tmpl=component&amp;lang=en&amp;Itemid=990 HTTP/1.0&quot; 404 - &quot;-&quot; &quot;PayPal IPN (   www.paypal.com/ipn  )&quot;  But i am in doubt that the 404 access code is related to the above problem, because i removed the order from the hikashop after it failed with paypal.  Also on the paypal sandbox i can see that the payment was transferred from the buyer to the shop account successfully.  Any help would be appreciated.  Thanks, Bruno")*

Hi Nicolas,

Thank you so much for your support, finally it is working great!

What you referred on point 2 solved the problem. I created an hikashop menu for the checkout and on the hikashop configuration i set the "force menu on checkout" with the menu that i created.

Thanks for the help again,
Bruno

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

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

[](#top)
