- Posts: 94
- Thank you received: 3
Alipay payment notification refused:invalid respon
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!!
Please Log in or Create an account to join the conversation.
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.
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!
Please Log in or Create an account to join the conversation.
Was the order confirmed in HikaShop ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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.
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!
Please Log in or Create an account to join the conversation.
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.
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!
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
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 :But we don't generate the same sign that you send us through the notify_url.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);
Please Log in or Create an account to join the conversation.
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.
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?
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
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.
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.
You don't need to develop Alipay partner mode later because Alipay will stop the partner mode service... It will only direct mode work.
Please Log in or Create an account to join the conversation.