[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 [\#44849](#44849) by [seoweb](/forum/user/4686-seoweb "View seoweb's Profile")  *[AliPay for Hikashop](/forum/4-how-to/44849-alipay-for-hikashop#44849 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")* was created by *[seoweb](/forum/user/4686-seoweb "View seoweb's Profile")*

Hello,

Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!

Regards,
SeoWeb

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45285](#45285) 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#45285 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Hello,

We somehow managed to develop the alipay plugin but we don't have any test account, so if someone can test it for us, it would be great.

Regards,
Mohamed Thelji

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45522](#45522) 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#45522 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

I wil test it for you and report back. Thanx for the Plugin!

Regards,
SeoWeb

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45582](#45582) 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#45582 "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, I have got some results of my testing.

No matter what settings I use for the plugin I get the error message:

---

调试错误，请回到请求来源地，重新发起请求。
错误代码 ILLEGAL_PARTNER_EXTERFACE

说明:如果您不是因为本接口集成调试而看见该错误提醒，请联系本次请求来源网站，本错误属于网站集成接口的错误。

---

with a link to the documentation page: [ help.alipay.com/lab/index.htm?src=yy\_reach\_error](http://help.alipay.com/lab/index.htm?src=yy_reach_error) where I can search using the string ILLEGAL_PARTNER_EXTERFACE.

There is only one relevant result for this term: [ help.alipay.com/lab/help\_detail.htm?help...AL\_PARTNER\_EXTERFACE](http://help.alipay.com/lab/help_detail.htm?help_id=243914&keyword=ILLEGAL_PARTNER_EXTERFACE)

Also there is another article saying that it might be that some of the AliPay Sellers features are not enabled (instant payment processing may be?)
[ www.oschina.net/question/163899\_23976](http://www.oschina.net/question/163899_23976)

We will check our Seller account to make a picture a bit clearer.

Will let you know...

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45588](#45588) 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#45588 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Is this plugin designed for Instant Payment processing or for the Third Parties processing?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45595](#45595) 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#45595 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Hello, thank you for testing it !
This plugin is designed for a Third Parties processing, concerning your error message if you have correctly set your plugin it might be caused by the redirection link to the alipay's payment page or by your alipay's account setting.
If you can share your alipay's account or just your Partner ID and Security code by mp, it would help us a lot.

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/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45603](#45603) 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#45603 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

There are three options for AliPay to use:

现在支付宝公司给了用户三种接口：
1。快速付款（即时到账接口）： service="create_direct_pay_by_user" 。
2。标准实物双接口（标准双接口）： service="trade_create_by_buyer"
3。纯担保交易接口（担保接口）： service="create_partner_trade_by_buyer"

Please note, there is no way to use instant payment (first one in a list) if the company in not registered in China.

I was informed that we use the create_partner_trade_by_buyer method. But when i change this in a alipay.php lile "service" =&gt; "create_partner_trade_by_buyer", I get an error ILLEGAL_ARGUMENT .

Unfortunately I can not share it with you, because they belong to live account and not Sandbox one, sorry. But I will be happy to continue testing following your instructions and reporting back about the results.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45638](#45638) 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#45638 "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 you're right about the "service", so I will adjust my script and post it when I will need your test.
Thank you very much for your help SeoWeb ![:)](/media/kunena/emoticons/3.png ":)").

---

Can you test it like this please ?

$order_params = array(
"service" =&gt; "create_partner_trade_by_buyer",
"payment_type"=&gt; "1",
"partner" =&gt; $method-&gt;payment_params-&gt;Partner_ID,
"seller_email" =&gt; $method-&gt;payment_params-&gt;email,
"return_url" =&gt; $return_url,
"notify_url" =&gt; $notify_url,
"_input_charset" =&gt; "utf-8",
"out_trade_no" =&gt; $out_trade_no,
"subject" =&gt; "order_name",
"body" =&gt; 'order number : '.$out_trade_no,
"total_fee" =&gt; $order-&gt;order_full_price
);

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/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45737](#45737) 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#45737 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Hello,

Thanx for the code. Just tested and have got an error message:

抱歉，无法完成付款！

交易信息有误，请重新核实交易详情再付款。

错误代码：ILLEGAL_ARGUMENT

Is it possible there is something missing? Here is the sample code AliPay provides to the developers:

$parameter = array(
"service" =&gt; "create_partner_trade_by_buyer",
"payment_type" =&gt; "1",

"partner" =&gt; trim($aliapy_config),
"_input_charset" =&gt; trim(strtolower($aliapy_config)),
"seller_email" =&gt; trim($aliapy_config),
"return_url" =&gt; trim($aliapy_config),
"notify_url" =&gt; trim($aliapy_config),

"out_trade_no" =&gt; $out_trade_no, //generated by Hika
"subject" =&gt; $subject,
"body" =&gt; $body,
"price" =&gt; $price,
"quantity" =&gt; $quantity,

"logistics_fee" =&gt; $logistics_fee,
"logistics_type" =&gt; $logistics_type,
"logistics_payment" =&gt; $logistics_payment,

"receive_name" =&gt; $receive_name,
"receive_address" =&gt; $receive_address,
"receive_zip" =&gt; $receive_zip,
"receive_phone" =&gt; $receive_phone,
"receive_mobile" =&gt; $receive_mobile,

"show_url" =&gt; $show_url
);

As you can see there are more paramitres in that array. May be AliPay needs more?

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45738](#45738) 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#45738 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

I don't know if all of this parameters are needed but i will adjust the script for your next test.

---

Can you test it like this please ?

$order_params = array(
"seller_email" =&gt; $method-&gt;payment_params-&gt;email,
"service" =&gt; "create_partner_trade_by_buyer",
"partner" =&gt; $method-&gt;payment_params-&gt;Partner_ID,
"return_url" =&gt; $return_url,
"notify_url" =&gt; $notify_url,
"_input_charset" =&gt; "utf-8",
"subject" =&gt; "ORDER FROM YOUR WEBSITE",
"body" =&gt; 'order number : '.$out_trade_no,
"out_trade_no" =&gt; $out_trade_no,
"payment_type"=&gt; "1",
"total_fee" =&gt; $order-&gt;order_full_price,
"logistics_type"=&gt;"EXPRESS",
"logistics_fee"=&gt; 0,
"logistics_payment"=&gt;"BUYER_LOGISTIC_PAY",
'receive_name' =&gt; "ORDER RECEIVER",
'receive_address' =&gt; "ADRESSE",
'receive_zip' =&gt; "69150",
'receive_phone' =&gt; "0600000000"
);

The "Quantity" and "price" are not needed if you set the "total_fee"

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/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45743](#45743) 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#45743 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

No luck, same error:

抱歉，无法完成付款！

交易信息有误，请重新核实交易详情再付款。

错误代码：ILLEGAL_ARGUMENT

Please find the sample code provided by Alipay. If you ajust the alipay.config.php for both Seller and Buyer with correct account details everything will work fine!
*This attachment is hidden for guests.
Please log in or register to see it.*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45749](#45749) 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#45749 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

I already checked this code and used it to create the redirection's link to the alipay payment page, but I will look at this again.
Moreover, I made a few mistake in my previews script, "logistic_fee" should be like this :

"logistics_fee"=&gt; "0.00"

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/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45750](#45750) 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#45750 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Still the same:

抱歉，无法完成付款！

交易信息有误，请重新核实交易详情再付款。

错误代码：ILLEGAL_ARGUMENT

What are the recommended settings for the payment plugin itself? May be I have got something wrong?

[ ![settings.jpg](/forum/attachment/3368) ](/forum/attachment/3368 "settings.jpg")

- [ ![settings.jpg](/forum/attachment/3368) ](/forum/attachment/3368 "settings.jpg") [ ](/forum/attachment/3368?download=1 "settings.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45751](#45751) 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#45751 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

These ones are not working as well.

[ ![settings&#95;a.jpg](/forum/attachment/3369) ](/forum/attachment/3369 "settings&#95;a.jpg")

- [ ![settings&#95;a.jpg](/forum/attachment/3369) ](/forum/attachment/3369 "settings&#95;a.jpg") [ ](/forum/attachment/3369?download=1 "settings&#95;a.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45753](#45753) 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#45753 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

I think that your first configuration was good, can you test it for me please ?

And if it is doesn't work can you replace in alipay_end.php :

this line :

&lt;form id="hikashop_alipay_form" name="hikashop_alipay_form" action="&lt;?php echo $alipay_link; ?&gt;" method="get"&gt;

by this line :

&lt;form id="hikashop_alipay_form" name="hikashop_alipay_form" action="[ mapi.alipay.com/gateway.do?\_input\_charset=utf-8](https://mapi.alipay.com/gateway.do?_input_charset=utf-8)" method="get"&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45754](#45754) 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#45754 "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 are the results:

1. When I have deleted the old plugin, installed the new version and ran a test using first configuration I have got an error:

调试错误，请回到请求来源地，重新发起请求。
错误代码 ILLEGAL_SIGN

说明:如果您不是因为本接口集成调试而看见该错误提醒，请联系本次请求来源网站，本错误属于网站集成接口的错误。

2. I then replaced the line

&lt;form id="hikashop_alipay_form" name="hikashop_alipay_form" action="&lt;?php echo $alipay_link; ?&gt;" method="get"&gt;

with

&lt;form id="hikashop_alipay_form" name="hikashop_alipay_form" action="mapi.alipay.com/gateway.do?_input_charset=utf-8" method="get"&gt;

I ahve got this error message:

Not Found

The requested URL /newsim/checkout/step/mapi.alipay.com/gateway.do was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I think the action="[ mapi.alipay.com/gateway.do?\_input\_charset=utf-8](http://mapi.alipay.com/gateway.do?_input_charset=utf-8)" is not correct so I have changed it to action="[ mapi.alipay.com/gateway.do?\_input\_charset=utf-8](http://mapi.alipay.com/gateway.do?_input_charset=utf-8)"

and have got the same error message:

调试错误，请回到请求来源地，重新发起请求。
错误代码 ILLEGAL_SIGN

Any idea?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45755](#45755) 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#45755 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

This error message seems better so now I will check the "sign" ![:)](/media/kunena/emoticons/3.png ":)").

---

1. Can you please replace in alipay_end.php :

this line :

&lt;form id="hikashop_alipay_form" name="hikashop_alipay_form" action="&lt;?php echo $alipay_link; ?&gt;" method="get"&gt;

by this line :

&lt;form id="hikashop_alipay_form" name="hikashop_alipay_form" action="&lt;?php echo $alipay_link; ?&gt;" method="POST"&gt;

==&gt; tell me the result

2. Replace in alipay_end.php :

this line :

&lt;form id="hikashop_alipay_form" name="hikashop_alipay_form" action="&lt;?php echo $alipay_link; ?&gt;" method="get"&gt;

by this line :

&lt;form id="hikashop_alipay_form" name="hikashop_alipay_form" action="[ www.alipay.com/cooperate/gateway.do](https://www.alipay.com/cooperate/gateway.do)?" method="get"&gt;

==&gt; tell me the result ![:)](/media/kunena/emoticons/3.png ":)").

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/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45758](#45758) 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#45758 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

Since there is no english help I can only offer you a link to a chinese article in regards to this error: [ club.alipay.com/read-htm-tid-8681631.html](http://club.alipay.com/read-htm-tid-8681631.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45767](#45767) 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#45767 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

&lt;form id="hikashop_alipay_form" name="hikashop_alipay_form" action="&lt;?php echo $alipay_link; ?&gt;" method="get"&gt;

by this line :

&lt;form id="hikashop_alipay_form" name="hikashop_alipay_form" action="&lt;?php echo $alipay_link; ?&gt;" method="POST"&gt;

==&gt; did not get any errors, was able to pay successfully, and when AliPay was redirecting back to my website to report the cussessfull sale it was requestinf the https connection. We do not have SSL installed, so which part of the code I need to change to get the return url with http: in it?

Update:
Once I have changed the $httpsHikashop = str_replace('http://','https://', HIKASHOP_LIVE); to $httpsHikashop = str_replace('http://','https://', HIKASHOP_LIVE); I did not receive any errors at all, which is a good sign ![:-)](/media/kunena/emoticons/3.png ":-)"), but I can only see the blank page which is generated using this URL:
Code:

http://www.abc.com/index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=alipay&amp;tmpl=component&amp;user_return=1&amp;lang=en&amp;body=order+number+%3A+100760&amp;buyer_email=_hidden_&amp;buyer_id=_hidden_&amp;discount=0.00&amp;gmt_create=2012-04-03+23%3A22%3A17&amp;gmt_logistics_modify=2012-04-03+23%3A22%3A17&amp;gmt_payment=2012-04-03+23%3A22%3A37&amp;is_success=T&amp;is_total_fee_adjust=N&amp;logistics_fee=0.00&amp;logistics_payment=BUYER_PAY&amp;logistics_type=EXPRESS&amp;notify_id=RqPnCoPT3K9%252Fvwbh3I7ymxG0iJUuUJD58RjiCVi6H0dpb2jtQCH%252FD%252B7JMImaDkU4VV2T&amp;notify_time=2012-04-03+23%3A22%3A42&amp;notify_type=trade_status_sync&amp;out_trade_no=100760&amp;payment_type=1&amp;price=0.01&amp;quantity=1&amp;receive_address=ADRESSE&amp;receive_name=ORDER+RECEIVER&amp;receive_phone=0600000000&amp;receive_zip=69150&amp;seller_actions=SEND_GOODS&amp;seller_email=jaginehe%40hotmail.com&amp;seller_id=_hidden_&amp;subject=ORDER+FROM+YOUR+WEBSITE&amp;total_fee=0.01&amp;trade_no=_hidden_&amp;trade_status=WAIT_SELLER_SEND_GOODS&amp;use_coupon=N&amp;sign=_hidden_&amp;sign_type=MD5

Please note some parts in a url are being replaced with _hidden_ .

We are almost there!!!

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0ODQ5LWFsaXBheS1mb3ItaGlrYXNob3A/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) 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 [\#45770](#45770) 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#45770 "Hello,  Any chance to get an AliPay payment plugin for Hikashop any soon? I think this would open the whole Chinese market!  Regards, SeoWeb")*

I think that you can replace in alipay.php:

line 72-73 :

$notify_url = $httpsHikashop.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=alipay&amp;tmpl=component&amp;lang='.$locale;
$return_url = $httpsHikashop.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=alipay&amp;tmpl=component&amp;user_return=1&amp;lang='.$locale;

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;
$return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=alipay&amp;tmpl=component&amp;user_return=1&amp;lang='.$locale;

by the way, can you replace $order_params by :

$order_params = array(
"seller_email" =&gt; $method-&gt;payment_params-&gt;email,
"service" =&gt; "create_partner_trade_by_buyer",
"partner" =&gt; $method-&gt;payment_params-&gt;Partner_ID,
"return_url" =&gt; $return_url,
"notify_url" =&gt; $notify_url,
"_input_charset" =&gt; "utf-8",
"subject" =&gt; "ORDER_FROM_YOUR_WEBSITE",
"body" =&gt; 'order number : '.$out_trade_no,
"out_trade_no" =&gt; $out_trade_no,
"payment_type"=&gt; "1",
"price" =&gt; $order-&gt;order_full_price,
"quantity" =&gt; "1",
"logistics_type"=&gt;"EXPRESS",
"logistics_fee"=&gt; "0.00",
"logistics_payment"=&gt;"BUYER_PAY",
);

==&gt; tell me if it works ![:)](/media/kunena/emoticons/3.png ":)")

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

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