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

#   AliPay for Hikashop

##

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago -  14 years 7 months ago [\#45771](#45771) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45771 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Blank page (like described above) when Alipay redirects me back to the sellers website. By the way, the status of the order was nat updated to confirmed either.

I have noticed there is a &amp;is_success=T part within the url. May be Hikashop should be ajusted to understand the responce?

Last edit: 14 years 7 months ago by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 7 months ago [\#45778](#45778) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45778 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

The "$return_url" should be the problem, so I will check this.

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago -  14 years 7 months ago [\#45780](#45780) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45780 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Just wanted to let you know I am using 1.5.4 version of Hikashop if it makes any sense. Thanx

Update:

I have looked into the PayPal plugin and took some code from there:
Code:

$notify_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=alipay&amp;tmpl=component&amp;lang='.$locale.$url_itemid; $return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id='.$order-&gt;order_id.$url_itemid;

and it **works now** showing the THANK_YOU_FOR_PURCHASE="Thank you for your purchase" message, but the status is still 'created' and not 'confirmed'.

I have checked the statuses of the orders in my AliPay User Account area and I can see the status is set to 'Waiting for dispatch'. Since Alipay logic is different from PayPal I think Hikashop should have a way to let the AliPay know that the Product has been sent to the customer. Probably when the status will be changed manually to 'Shipped' Hikashop should trigger AliPay's website and let them know that the product has been sent to the customer. For this there is another part of the API called (send_goods_confirm_by_platform) which I think should be utilized when the order status is changed to 'Shipped' and this logic should only be used when the AliPay payment methos has been used by the customer and not PayPal.

According to AliPay's logic there should be one more step: Once the buyer receives the product, he has to confirm this fact using AliPay's website. Only After this money will be transferred to Seller's account.

Last edit: 14 years 7 months ago by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 7 months ago -  14 years 7 months ago [\#45804](#45804) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45804 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Ok good, we will work in the statuses of the orders of your Alipay User Account in a second time.

Now, can you please :

1. activate the debug mode in the configuration of your alipay plugin.
2. do a simple test of purshase.
3. and then send me screenshots of your logs (Hikashop -&gt; Configuration -&gt; Files -&gt; see the report).

==&gt; It was a good idea to change the "$return_url" but I think that the problem come from the "$notify_url".

Last edit: 14 years 7 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago [\#45832](#45832) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45832 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Here is the log:
Code:

Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Could not load any order for your notification Array ( [option] =&gt; com_hikashop [ctrl] =&gt; checkout [task] =&gt; notify [notif_payment] =&gt; alipay [tmpl] =&gt; component [lang] =&gt; en [discount] =&gt; 0.00 [payment_type] =&gt; 1 [subject] =&gt; ORDER_FROM_YOUR_WEBSITE [trade_no] =&gt; _hidden_ [buyer_email] =&gt; _hidden_ [gmt_create] =&gt; 2012-04-04 18:11:10 [notify_type] =&gt; trade_status_sync [quantity] =&gt; 1 [out_trade_no] =&gt; 100765 [seller_id] =&gt; _hidden_ [notify_time] =&gt; 2012-04-04 18:11:11 [body] =&gt; order number : 100765 [trade_status] =&gt; WAIT_BUYER_PAY [is_total_fee_adjust] =&gt; Y [total_fee] =&gt; 0.01 [seller_email] =&gt; _hidden_ [price] =&gt; 0.01 [buyer_id] =&gt; _hidden_ [notify_id] =&gt; cf921b84dc60371260ffaac6488c127601 [use_coupon] =&gt; N [sign_type] =&gt; MD5 [sign] =&gt; dfd16eb623ac48dd6e190bbe4f97e6c2 [view] =&gt; checkout [Itemid] =&gt; 1 [hikashop_front_end_main] =&gt; 1 ) Could not load any order for your notification Array ( [option] =&gt; com_hikashop [ctrl] =&gt; checkout [task] =&gt; notify [notif_payment] =&gt; alipay [tmpl] =&gt; component [lang] =&gt; en [discount] =&gt; 0.00 [logistics_type] =&gt; EXPRESS [receive_zip] =&gt; 123123 [payment_type] =&gt; 1 [subject] =&gt; ORDER_FROM_YOUR_WEBSITE [logistics_fee] =&gt; 0.00 [trade_no] =&gt; _hidden_ [buyer_email] =&gt; _hidden_ [gmt_create] =&gt; 2012-04-04 18:11:10 [notify_type] =&gt; trade_status_sync [quantity] =&gt; 1 [logistics_payment] =&gt; BUYER_PAY [out_trade_no] =&gt; 100765 [seller_id] =&gt; _hidden_ [notify_time] =&gt; 2012-04-04 18:11:49 [body] =&gt; order number : 100765 [trade_status] =&gt; WAIT_BUYER_PAY [is_total_fee_adjust] =&gt; N [total_fee] =&gt; 0.01 [seller_email] =&gt; _hidden_ [price] =&gt; 0.01 [buyer_id] =&gt; _hidden_ [gmt_logistics_modify] =&gt; 2012-04-04 18:11:10 [receive_phone] =&gt; 0571-88156688-0572 [notify_id] =&gt; af1cc1e37db3552a8a48eb3cb48b263b01 [use_coupon] =&gt; N [receive_name] =&gt; Deniss [sign_type] =&gt; MD5 [sign] =&gt; d675bb60ce60edf50e1ef4e6024d674f [receive_address] =&gt; Line 1 [view] =&gt; checkout [Itemid] =&gt; 1 [hikashop_front_end_main] =&gt; 1 ) Could not load any order for your notification Array ( [option] =&gt; com_hikashop [ctrl] =&gt; checkout [task] =&gt; notify [notif_payment] =&gt; alipay [tmpl] =&gt; component [lang] =&gt; en [discount] =&gt; 0.00 [logistics_type] =&gt; EXPRESS [receive_zip] =&gt; 123123 [payment_type] =&gt; 1 [subject] =&gt; ORDER_FROM_YOUR_WEBSITE [logistics_fee] =&gt; 0.00 [trade_no] =&gt; _hidden_ [buyer_email] =&gt; _hidden_ [gmt_create] =&gt; 2012-04-04 18:11:10 [notify_type] =&gt; trade_status_sync [quantity] =&gt; 1 [logistics_payment] =&gt; BUYER_PAY [out_trade_no] =&gt; 100765 [seller_id] =&gt; _hidden_ [notify_time] =&gt; 2012-04-04 18:12:05 [body] =&gt; order number : 100765 [trade_status] =&gt; WAIT_SELLER_SEND_GOODS [is_total_fee_adjust] =&gt; N [gmt_payment] =&gt; 2012-04-04 18:12:05 [total_fee] =&gt; 0.01 [seller_email] =&gt; _hidden_ [price] =&gt; 0.01 [buyer_id] =&gt; _hidden_ [gmt_logistics_modify] =&gt; 2012-04-04 18:11:49 [receive_phone] =&gt; 0571-88156688-0572 [notify_id] =&gt; 4033cb53720d6ced33cdeda2735b218901 [use_coupon] =&gt; N [receive_name] =&gt; Deniss [sign_type] =&gt; MD5 [sign] =&gt; e97c0052c71c22b55af668456e05daa2 [receive_address] =&gt; Line 1 [view] =&gt; checkout [Itemid] =&gt; 1 [hikashop_front_end_main] =&gt; 1 ) Could not load any order for your notification

=&gt; I have changed both return_urk and notify_url .

Regards

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 7 months ago -  14 years 7 months ago [\#45850](#45850) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45850 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Ok can you please replace in "alipay.php" these lines :

$dbOrder = $orderClass-&gt;get((int)@$vars);
if(empty($dbOrder)){
echo "Could not load any order for your notification ".@$vars;

by these lines :

$dbOrder = $orderClass-&gt;get((int)@$vars);
if(empty($dbOrder)){
echo "Could not load any order for your notification ".@$vars;

==&gt; tell me if it works.

And can you replace also the "notify_url" by :

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

Last edit: 14 years 7 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago -  14 years 7 months ago [\#45852](#45852) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45852 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

After these changes I can not see any records about the new test orders, only about the old one I have posted earlier.
The whole purchising procedure went fine without any errors.

Update:

Just got a message via email from Hikashop itself:

Hello,
A Alipay notification was refused because the connection to the confirmation server failed.

This notification was for the order J1G0M0E767 on the website [ www.didamobile.com/](http://www.didamobile.com/)
You can access the order details directly by clicking on the link below after logging in your back end:
[ www.abc.com/administrator/index.php?opti...edit&amp;order\_id=100767](http://www.abc.com/administrator/index.php?option=com_hikashop&ctrl=order&task=edit&order_id=100767)

And these messages are continuing to arrive every 1 to 5 minutes

Last edit: 14 years 7 months ago by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 7 months ago [\#45859](#45859) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45859 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Good, now can you test it and tell me if you have the same error ?

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago [\#45860](#45860) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45860 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

By the way, my error_log log file is full of this error:
PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /home/abc/public_html/libraries/joomla/filesystem/folder.php on line 424

The file size is about 700 MB now!

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 7 months ago -  14 years 7 months ago [\#45861](#45861) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45861 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

When you're testing the plugin put the debug mode off.

Update

---

can you also replace in alipay.php these lines :

if($url == 'https') {
$transport = 'ssl://';
$url = '443';
} else {
$transports = 'tcp://';
$url = '80';
}

by theses lines :

if($url == 'https') {
$transport = 'ssl://';
$url = '443';
} else {
$transport = 'tcp://';
$url = '80';
}

Last edit: 14 years 7 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago -  14 years 7 months ago [\#45862](#45862) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45862 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

After the new version of plugin was installed I have got same message as before:

Hello,
A Alipay notification was refused because the connection to the confirmation server failed.

This notification was for the order J1G0M0F768 on the website [ www.didamobile.com/](http://www.didamobile.com/)
You can access the order details directly by clicking on the link below after logging in your back end:
[ www.abc.com/administrator/index.php?opti...edit&amp;order\_id=100768](http://www.abc.com/administrator/index.php?option=com_hikashop&ctrl=order&task=edit&order_id=100768)

The order status is still 'Created' and I continue to get error messages 'A Alipay notification was refused because the connection to the confirmation server failed.'

Last edit: 14 years 7 months ago by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile").

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago -  14 years 7 months ago [\#45866](#45866) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45866 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

1. Applied new code:
Code:

if($url['scheme'] == 'https') {$transport = 'ssl://'; $url['port'] = '443';} else {$transport = 'tcp://'; $url['port'] = '80';}

2. Same error massage via Email.

3. More details for error_log file (debug is off in Plugin settings):
Code:

[04-Apr-2012 14:36:48 UTC] PHP Warning: PHP Startup: PDO: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in Unknown on line 0 [04-Apr-2012 14:36:48 UTC] PHP Warning: PHP Startup: pdo_sqlite: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in Unknown on line 0 [04-Apr-2012 14:36:48 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so: undefined symbol: third_arg_force_ref in Unknown on line 0 [04-Apr-2012 14:36:48 UTC] PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in Unknown on line 0 [04-Apr-2012 14:36:52 UTC] PHP Warning: readdir() expects parameter 1 to be resource, boolean given in /home/abc/public_html/libraries/joomla/filesystem/folder.php on line 424

4. No updates in hikashop log file.

Hope this helps

Last edit: 14 years 7 months ago by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 7 months ago -  14 years 7 months ago [\#45880](#45880) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45880 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Can your replace in your alipay.php these lines :

while(!feof($fp)) {
$response = @fgets($fp, 1024);
}
fclose($fp);
if($element-&gt;payment_params-&gt;debug){
echo print_r($response,true)."\n\n\n";
}
$notify=implode(',', $notify);

by :

while(!feof($fp)) {
$response[] = @fgets($fp, 1024);
}
fclose($fp);
if($element-&gt;payment_params-&gt;debug){
echo print_r($response,true)."\n\n\n";
}
$notify=implode(',', $response);

---

and this :
$url = parse_url($url_notify);
$errno='';
$errstr='';
$notify = array();
if($url == 'https') {
$transport = 'ssl://';
$url = '443';
} else {
$transport = 'tcp://';
$url = '80';
}
if($element-&gt;payment_params-&gt;debug){
echo print_r($url,true)."\n\n\n";
}
$fp = @fsockopen($transport . $url, $url, $errno, $errstr, 60);
if(!$fp) {
$mailer-&gt;setSubject(JText::sprintf('NOTIFICATION_REFUSED_FOR_THE_ORDER','Alipay').' '.JText::sprintf('PAYPAL_CONNECTION_FAILED',$dbOrder-&gt;order_number));
$body = str_replace('&lt;br/&gt;',"\r\n",JText::sprintf('NOTIFICATION_REFUSED_NO_CONNECTION','Alipay'))."\r\n\r\n".$order_text;
$mailer-&gt;setBody($body);
$mailer-&gt;Send();
JError::raiseError( 403, JText::_( 'Access Forbidden' ));
return false;
} else {
fputs($fp, "POST " . $url . " HTTP/1.1\r\n");
fputs($fp, "HOST: " . $url . "\r\n");
fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
fputs($fp, "Content-length: " . strlen($url) . "\r\n");
fputs($fp, "Connection: close\r\n\r\n");
fputs($fp, $url . "\r\n\r\n");

by :

$url_array = parse_url($url_notify);
$errno='';
$errstr='';
$notify = array();
if($url_array == 'https') {
$transport = 'ssl://';
$url_array = '443';
} else {
$transport = 'tcp://';
$url_array = '80';
}
if($element-&gt;payment_params-&gt;debug){
echo print_r($url,true)."\n\n\n";
}
$fp = @fsockopen($transport . $url_array, $url_array, $errno, $errstr, 60);
if(!$fp) {
$mailer-&gt;setSubject(JText::sprintf('NOTIFICATION_REFUSED_FOR_THE_ORDER','Alipay').' '.JText::sprintf('PAYPAL_CONNECTION_FAILED',$dbOrder-&gt;order_number));
$body = str_replace('&lt;br/&gt;',"\r\n",JText::sprintf('NOTIFICATION_REFUSED_NO_CONNECTION','Alipay'))."\r\n\r\n".$order_text;
$mailer-&gt;setBody($body);
$mailer-&gt;Send();
JError::raiseError( 403, JText::_( 'Access Forbidden' ));
return false;
} else {
fputs($fp, "POST " . $url_array . " HTTP/1.1\r\n");
fputs($fp, "HOST: " . $url_array . "\r\n");
fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
fputs($fp, "Content-length: " . strlen($url_array) . "\r\n");
fputs($fp, "Connection: close\r\n\r\n");
fputs($fp, $url_array . "\r\n\r\n");

Last edit: 14 years 7 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago -  14 years 7 months ago [\#45886](#45886) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45886 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Same error:

'A Alipay notification was refused because the connection to the confirmation server failed.' arrives once I am redirected to AliPay to complete the payment and another time when the payment has been confirmed by AliPay and I get rediracted back to the Seller's website and a couple more times after that...

Last edit: 14 years 7 months ago by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 7 months ago [\#45891](#45891) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45891 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

The problem can be caused by your hosting company :

- do you know if they allow outgoing connection to another server ?
- and can you ask them if they can allow an outgoing connection to the alipay server ?

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago -  14 years 7 months ago [\#45894](#45894) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45894 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Just sent the request. Waiting for the reply.

They have just updated their servers to PHP version PHP 5.3.10. May be this is a reason why we can not implement the AliPay solution successfully?

We have a PayPal payment plugin working without any problems on our website. Do you think there is still a possibility they block outgoing connections?

Last edit: 14 years 7 months ago by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 7 months ago [\#45900](#45900) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45900 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Yes, I think that it could be a reason ![:)](/media/kunena/emoticons/3.png ":)").

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago -  14 years 7 months ago [\#45907](#45907) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45907 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Let's see what the hosting company will say.

Since we do not get any errors by the PHP interpreter, I think we should be fine shouldn't we?

Last edit: 14 years 7 months ago by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 7 months ago -  14 years 7 months ago [\#45978](#45978) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45978 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Yes because the problem come from this line :

$fp = @fsockopen($transport . $url_array, $url_array, $errno, $errstr, 60);

==&gt; it means that your server can't accept any outgoing connections from the Alipay server.

Last edit: 14 years 7 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

- **[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")**
- [![seoweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4686.gif)](/forum/user/4686-seoweb "View seoweb's Profile") Topic Author
- [ Offline](/forum/user/4686-seoweb)

Less More

- Posts: 80
- Thank you received: 1
-
-

14 years 7 months ago [\#45994](#45994) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  Replied by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")* on topic *[Re: AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop?start=20#45994 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Good morning.

The are asking what are the outgoing port numbers we want them to open.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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.099 seconds

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