Skip to main content

Alipay payment notification refused:invalid respon

More
13 years 8 months ago - 13 years 8 months ago #85539 by bluetooth
Dear Sir:
I use Alipay payment methord.I receive error email title as "Alipay payment notification refused:invalid response"When customer confirm the products received and pay.The email content is "An Alipay notification was refused because the response from the Alipay server was invalid".
What is the problem?Please help.
Thanks very much!!
Last edit: 13 years 8 months ago by bluetooth.

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

More
13 years 8 months ago #85685 by nicolas
Hi,

It usually means that the security code is not correct. Can you double check that you entered the correct information in the options of the AliPay plugin ?

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

More
13 years 8 months ago - 13 years 8 months ago #85725 by bluetooth
Dear Sir:
Thanks for your reply!
I am sure I entered the correct information in the options of the AliPay plugin.Otherwise the customer would not prepay through Alipay.
Now the customer had confirmed his product received and I received the his Payment form Alipay.But I didn't konw why it happened about the wrong message?
It's OK now.
Thanks & Best Regards!
Last edit: 13 years 8 months ago by bluetooth.

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

More
13 years 8 months ago #85761 by nicolas
I don't know either.

Was the order confirmed in HikaShop ?

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

More
13 years 8 months ago - 13 years 8 months ago #85895 by bluetooth
Yes!The order was Confirmed!
Last edit: 13 years 8 months ago by bluetooth.

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

More
13 years 8 months ago #86015 by nicolas
Hi,

Ok, I think I understand the problem. However, to fix it properly, we would need an AliPay test account (or an account with a test mode option) which we don't have.

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

More
13 years 8 months ago - 13 years 8 months ago #86064 by bluetooth
Dear Nicolas:
Thanks for your reply!
The test account "test_hikashop" is still exist.Could you remember the password?How to set a test mode option account?
Thanks!
Last edit: 13 years 8 months ago by bluetooth.

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

More
13 years 8 months ago #86137 by nicolas
No I don't mean a test account on your website but an AliPay test account.
I don't know how to set that. I've never used AliPay yet. You should ask with AliPay if it's even possible.

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

More
13 years 8 months ago - 13 years 8 months ago #86256 by bluetooth
OK!
I had send you a Alipay Account by private message.
Because the UI language of login and payment is Simplify Chinese,I didn't know if you can read that.If any questiona,just let me know!
I tested myself.as a customer, it could implement the whole shopping flow.But as shop administrator,I could receive a email titled as "Alipay payment notification refused:invalid response".the same as above.It happened after the shop administrator delivering (operate in Alipay)the products,and it will sent this same email serveral times until the customer's Confirmation of receipt of goods(operate in Alipay).
So I think it OK.It doesn't infect the shopping business.
Thanks a lot!
Last edit: 13 years 8 months ago by bluetooth.

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

More
13 years 8 months ago #86386 by nicolas
Hi,

Thank you for that. I got the access. Mohamed will work on the issue this week and report you back on his findings and if he has questions on the Chinese text as we don't speak Chinese here.
The following user(s) said Thank You: bluetooth

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

More
10 years 8 months ago #225123 by graceufo
any solution,please?

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

More
10 years 8 months ago #225153 by Mohamed Thelji
Hello,
Since 2 Years ago that issue was solved, but now some of our customers are having the same issue because there have been some changes on the Alipay API, we tried to reach them, but finally we asked one of our customer which had the same issue to directly contact them.
For the moment we are waiting for a response.
Here is the message I asked him to send them :

Here are the parameters used to calculate the sign :
$params :
Array
(
[Itemid] => 412
[ctrl] => checkout
[currency] => USD
[hikashop_payment_notification_plugin] => 1
[lang] => zh
[notif_payment] => alipay
[notify_id] => b5d07addb65b51e29900912e456180dneq
[notify_time] => 2015-12-03 00:51:26
[notify_type] => trade_status_sync
[option] => com_hikashop
[out_trade_no] => xx
[task] => notify
[tmpl] => component
[total_fee] => 1.04
[trade_no] => xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[trade_status] => TRADE_FINISHED
)

Here is the PHP sign calculation algorithm we used :

Code:
$params_str = ''; foreach($params as $key => $value) { if($params_str == '') { $params_str = "$key=$value"; } else { $params_str .= "&$key=$value"; } } if($this->_sign_type == 'MD5') return md5($params_str . $this->_security_code);
But we don't generate the same sign that you send us through the notify_url.

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

More
10 years 8 months ago #225274 by bluetooth
Hi Mohamed Thelji:
I couldn't test the error because I didn't use direct mode alipay plugin. I only could use partner mode alipay plugin.
My error code is Illegal_argument. The Alipay technical said it was bec

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

More
10 years 8 months ago - 10 years 8 months ago #225275 by bluetooth
Hi Mohamed Thelji:
I couldn't test the error because I didn't use direct mode alipay plugin. I only could use partner mode alipay plugin.
My error code is Illegal_argument. The Alipay technical said it was because the request parameters is not enough.
Please check the " 4.2.2 list of parameters "chapter in attached file Escrow_Payment_API_Specification(create_partner_trade_by_buyer). All parameters marked with "N" in the list should be used.
Do you need the old code "plg_hikashoppayment_alipay" file which you sent to me two years ago?
Last edit: 10 years 8 months ago by bluetooth.

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

More
10 years 8 months ago #225286 by Mohamed Thelji
Hello,
Ok thank you for the documentation, the current Alipay payment plugin will only works with the direct mode of the moment, and we added the partner mode to our TODO list for the moment.

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

More
10 years 8 months ago #226258 by bluetooth
Hi Mohaned:
I found yout Alipay plugin which you sent me before is worked on my website now.

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

More
10 years 8 months ago #227206 by bluetooth
Hi Mohaned:
You don't need to develop Alipay partner mode later because Alipay will stop the partner mode service... It will only direct mode work.
The following user(s) said Thank You: Mohamed Thelji

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

Time to create page: 0.309 seconds
Powered by Kunena Forum