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

#   alipay return\_url and notify\_url seems have issue

##

- **[aotogou@gmail.com](/forum/user/37081-aotogou-gmail-com "View aotogou@gmail.com's Profile")**
- [![aotogou@gmail.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37081-aotogou-gmail-com "View aotogou@gmail.com's Profile") Topic Author
- [ Offline](/forum/user/37081-aotogou-gmail-com)

Less More

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

11 years 5 months ago [\#201805](#201805) by [aotogou@gmail.com](/forum/user/37081-aotogou-gmail-com "View aotogou@gmail.com's Profile")  *[alipay return\_url and notify\_url seems have issue](/forum/29-payment-methods/876977-alipay-return-url-and-notify-url-seems-have-issue#201805 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Chrome Version 42.0.2311.135 (64-bit)  Hi there,  I'm using alipay payment method for by website. Trade can be made after redirected to alipay website. However, the order status is not updating after redirected back to my site, although the message like &quot;Thank you for your purchage @ xxxxx&quot; is displaying properly.  I looked into the code, not sure if I found out the cause of issue or not: In the return&#95;url or notify&#95;url of alipay, they're: $notify&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=alipay&amp;tmpl=component&amp;lang='.$this-&gt;locale.$this-&gt;url&#95;itemid; and $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id.$this-&gt;url&#95;itemid;  They both have query string. However, in the integration document officially provided by alipay, says the reture&#95;url or notify&#95;url can't have query strings. Maybe that's why the order status from alipay seems not being read, and error email saying &quot;An Alipay notification was refused because the response from the Alipay server was invalid&quot; continually occurs.  I'm not sure how do you control this return&#95;url and notify&#95;url issue for alipay, so I'm trying to get help here.  Thanks for your time.  Regards, Yang")* was created by *[aotogou@gmail.com](/forum/user/37081-aotogou-gmail-com "View aotogou@gmail.com's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.0
-- PHP version -- : 5.3.3
-- Browser(s) name and version -- : Chrome Version 42.0.2311.135 (64-bit)

Hi there,

I'm using alipay payment method for by website. Trade can be made after redirected to alipay website.
However, the order status is not updating after redirected back to my site, although the message like "Thank you for your purchage @ xxxxx" is displaying properly.

I looked into the code, not sure if I found out the cause of issue or not:
In the return_url or notify_url of alipay, they're:
$notify_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif_payment=alipay&amp;tmpl=component&amp;lang='.$this-&gt;locale.$this-&gt;url_itemid;
and
$return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id='.$order-&gt;order_id.$this-&gt;url_itemid;

They both have query string. However, in the integration document officially provided by alipay, says the reture_url or notify_url can't have query strings. Maybe that's why the order status from alipay seems not being read, and error email saying "An Alipay notification was refused because the response from the Alipay server was invalid" continually occurs.

I'm not sure how do you control this return_url and notify_url issue for alipay, so I'm trying to get help here.

Thanks for your time.

Regards,
Yang

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzY5NzctYWxpcGF5LXJldHVybi11cmwtYW5kLW5vdGlmeS11cmwtc2VlbXMtaGF2ZS1pc3N1ZT90bXBsPW1hcmtkb3du) 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
-
-
-

11 years 5 months ago -  11 years 5 months ago [\#201832](#201832) 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 *[alipay return\_url and notify\_url seems have issue](/forum/29-payment-methods/876977-alipay-return-url-and-notify-url-seems-have-issue#201832 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Chrome Version 42.0.2311.135 (64-bit)  Hi there,  I'm using alipay payment method for by website. Trade can be made after redirected to alipay website. However, the order status is not updating after redirected back to my site, although the message like &quot;Thank you for your purchage @ xxxxx&quot; is displaying properly.  I looked into the code, not sure if I found out the cause of issue or not: In the return&#95;url or notify&#95;url of alipay, they're: $notify&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=alipay&amp;tmpl=component&amp;lang='.$this-&gt;locale.$this-&gt;url&#95;itemid; and $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id.$this-&gt;url&#95;itemid;  They both have query string. However, in the integration document officially provided by alipay, says the reture&#95;url or notify&#95;url can't have query strings. Maybe that's why the order status from alipay seems not being read, and error email saying &quot;An Alipay notification was refused because the response from the Alipay server was invalid&quot; continually occurs.  I'm not sure how do you control this return&#95;url and notify&#95;url issue for alipay, so I'm trying to get help here.  Thanks for your time.  Regards, Yang")*

Hello Yang,
Can you :
- Use that last Alipay version
- Set the Alipay "Debug" option to YES
- Test it again
- Show me your Payment log file content.

You'll be able to check your payment log file through "Hikashop-&gt;System-&gt;Configuration-&gt;Main" by using the "See the report" button of your Payment log file option.

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

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

- **[aotogou@gmail.com](/forum/user/37081-aotogou-gmail-com "View aotogou@gmail.com's Profile")**
- [![aotogou@gmail.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37081-aotogou-gmail-com "View aotogou@gmail.com's Profile") Topic Author
- [ Offline](/forum/user/37081-aotogou-gmail-com)

Less More

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

11 years 5 months ago [\#201854](#201854) by [aotogou@gmail.com](/forum/user/37081-aotogou-gmail-com "View aotogou@gmail.com's Profile")  Replied by *[aotogou@gmail.com](/forum/user/37081-aotogou-gmail-com "View aotogou@gmail.com's Profile")* on topic *[alipay return\_url and notify\_url seems have issue](/forum/29-payment-methods/876977-alipay-return-url-and-notify-url-seems-have-issue#201854 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Chrome Version 42.0.2311.135 (64-bit)  Hi there,  I'm using alipay payment method for by website. Trade can be made after redirected to alipay website. However, the order status is not updating after redirected back to my site, although the message like &quot;Thank you for your purchage @ xxxxx&quot; is displaying properly.  I looked into the code, not sure if I found out the cause of issue or not: In the return&#95;url or notify&#95;url of alipay, they're: $notify&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=alipay&amp;tmpl=component&amp;lang='.$this-&gt;locale.$this-&gt;url&#95;itemid; and $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id.$this-&gt;url&#95;itemid;  They both have query string. However, in the integration document officially provided by alipay, says the reture&#95;url or notify&#95;url can't have query strings. Maybe that's why the order status from alipay seems not being read, and error email saying &quot;An Alipay notification was refused because the response from the Alipay server was invalid&quot; continually occurs.  I'm not sure how do you control this return&#95;url and notify&#95;url issue for alipay, so I'm trying to get help here.  Thanks for your time.  Regards, Yang")*

Hi Mohamed,

Here's the log:
*************************

-- 05.15.15 23:16:08 --
Array
(
[option] =&gt; com_hikashop
[ctrl] =&gt; checkout
[task] =&gt; notify
[notif_payment] =&gt; alipay
[tmpl] =&gt; component
[lang] =&gt; en
[Itemid] =&gt; 329
[discount] =&gt; 0.00
[payment_type] =&gt; 1
[subject] =&gt; order number : 64
[trade_no] =&gt; 2015051500001000320058924060
[buyer_email] =&gt; lliyyang2@163.com
[gmt_create] =&gt; 2015-05-15 21:15:56
[notify_type] =&gt; trade_status_sync
[quantity] =&gt; 1
[out_trade_no] =&gt; 64
[seller_id] =&gt; 2088912559319093
[notify_time] =&gt; 2015-05-15 21:15:56
[trade_status] =&gt; WAIT_BUYER_PAY
[is_total_fee_adjust] =&gt; Y
[total_fee] =&gt; 0.01
[seller_email] =&gt; aotogou@gmail.com
[price] =&gt; 0.01
[buyer_id] =&gt; 2088002454394320
[notify_id] =&gt; ff0df07f91155fd66ebcf418aa656d6a3s
[use_coupon] =&gt; N
[sign_type] =&gt; MD5
[sign] =&gt; 761158796dd03684546bf971e591f541
)

-- 05.15.15 23:16:08 --
stdClass Object
(
[order_id] =&gt; 64
[order_billing_address_id] =&gt; 22
[order_shipping_address_id] =&gt; 22
[order_user_id] =&gt; 11
[order_status] =&gt; created
[order_type] =&gt; sale
[order_number] =&gt; C6U4
[order_created] =&gt; 1431695527
[order_modified] =&gt; 1431695527
[order_invoice_id] =&gt; 0
[order_invoice_number] =&gt;
[order_invoice_created] =&gt; 0
[order_currency_id] =&gt; 38
[order_full_price] =&gt; 0.01000
[order_tax_info] =&gt; Array
(
)

[order_discount_code] =&gt;
[order_discount_price] =&gt; 0.00000
[order_discount_tax] =&gt; 0.00000
[order_payment_id] =&gt; 2
[order_payment_method] =&gt; alipay
[order_payment_price] =&gt; 0.00000
[order_payment_params] =&gt;
[order_shipping_id] =&gt;
[order_shipping_method] =&gt;
[order_shipping_price] =&gt; 0.00000
[order_shipping_tax] =&gt; 0.00000
[order_shipping_params] =&gt;
[order_partner_id] =&gt; 0
[order_partner_price] =&gt; 0.00000
[order_partner_paid] =&gt; 0
[order_partner_currency_id] =&gt; 0
[order_ip] =&gt; 115.64.108.79
[order_site_id] =&gt;
)

-- 05.15.15 23:16:08 --
stdClass Object
(
[order_id] =&gt; 64
[order_billing_address_id] =&gt; 22
[order_shipping_address_id] =&gt; 22
[order_user_id] =&gt; 11
[order_status] =&gt; created
[order_type] =&gt; sale
[order_number] =&gt; C6U4
[order_created] =&gt; 1431695527
[order_modified] =&gt; 1431695527
[order_invoice_id] =&gt; 0
[order_invoice_number] =&gt;
[order_invoice_created] =&gt; 0
[order_currency_id] =&gt; 38
[order_full_price] =&gt; 0.01000
[order_tax_info] =&gt; Array
(
)

[order_discount_code] =&gt;
[order_discount_price] =&gt; 0.00000
[order_discount_tax] =&gt; 0.00000
[order_payment_id] =&gt; 2
[order_payment_method] =&gt; alipay
[order_payment_price] =&gt; 0.00000
[order_payment_params] =&gt;
[order_shipping_id] =&gt;
[order_shipping_method] =&gt;
[order_shipping_price] =&gt; 0.00000
[order_shipping_tax] =&gt; 0.00000
[order_shipping_params] =&gt;
[order_partner_id] =&gt; 0
[order_partner_price] =&gt; 0.00000
[order_partner_paid] =&gt; 0
[order_partner_currency_id] =&gt; 0
[order_ip] =&gt; 115.64.108.79
[order_site_id] =&gt;
)

-- 05.15.15 23:16:08 --
Array
(
[scheme] =&gt; http
[host] =&gt; notify.alipay.com
[path] =&gt; /trade/notify_query.do
[query] =&gt; partner=2088912559319093¬ify_id=ff0df07f91155fd66ebcf418aa656d6a3s
[port] =&gt; 80
)

-- 05.15.15 23:16:11 --
Array
(
[0] =&gt; HTTP/1.1 200 OK

[1] =&gt; Server: Tengine/2.1.0

[2] =&gt; Date: Fri, 15 May 2015 13:16:00 GMT

[3] =&gt; Content-Type: text/html;charset=GBK

[4] =&gt; Content-Length: 4

[5] =&gt; Connection: close

[6] =&gt; Set-Cookie: JSESSIONID=F19A51D02D1AA2CF2D648E2AC90A63A9; Path=/

[7] =&gt; Set-Cookie: ALIPAYJSESSIONID=GZ00rEJttkSZglEKZsrIp3Ymb1HSEQsuperapiGZ00; Domain=.alipay.com; Path=/

[8] =&gt; Set-Cookie: ctoken=SXu19OOxtYKU4cagN4a1XYUO3+IbZC; Domain=.alipay.com; Path=/

[9] =&gt; Cache-Control: max-age=0,no-cache

[10] =&gt; Expires: Thu, 05 Jan 1995 22:00:00 GMT

[11] =&gt; Pragma: no-cache

[12] =&gt; Set-Cookie: spanner=AoYqKdmrG2V1LjfjizZbnraTibwWXJaSXt2T4qEYgj0=;path=/;secure;

[13] =&gt;

[14] =&gt; true
)

-- 05.15.15 23:16:11 --

sign1 :
6f9a0cd39c7ba4f3518002e1e940a467

-- 05.15.15 23:16:11 --

sign2 :
761158796dd03684546bf971e591f541

-- 05.15.15 23:16:11 --
invalid response

-- 05.15.15 23:18:41 --
Array
(
[option] =&gt; com_hikashop
[ctrl] =&gt; checkout
[task] =&gt; notify
[notif_payment] =&gt; alipay
[tmpl] =&gt; component
[lang] =&gt; en
[Itemid] =&gt; 329
[discount] =&gt; 0.00
[logistics_type] =&gt; EXPRESS
[receive_zip] =&gt; 3166
[payment_type] =&gt; 1
[subject] =&gt; order number : 64
[logistics_fee] =&gt; 0.00
[trade_no] =&gt; 2015051500001000320058924060
[buyer_email] =&gt; lliyyang2@163.com
[gmt_create] =&gt; 2015-05-15 21:15:56
[notify_type] =&gt; trade_status_sync
[quantity] =&gt; 1
[logistics_payment] =&gt; BUYER_PAY
[out_trade_no] =&gt; 64
[seller_id] =&gt; 2088912559319093
[notify_time] =&gt; 2015-05-15 21:18:28
[trade_status] =&gt; WAIT_SELLER_SEND_GOODS
[is_total_fee_adjust] =&gt; N
[gmt_payment] =&gt; 2015-05-15 21:18:28
[total_fee] =&gt; 0.01
[seller_email] =&gt; aotogou@gmail.com
[price] =&gt; 0.01
[buyer_id] =&gt; 2088002454394320
[gmt_logistics_modify] =&gt; 2015-05-15 21:15:56
[receive_phone] =&gt; +61452512657
[notify_id] =&gt; b7e89620380c399c5bcbd3256e2ee40c3s
[receive_name] =&gt; Li Yang
[use_coupon] =&gt; N
[sign_type] =&gt; MD5
[sign] =&gt; 71c7b9d9387f9a99aee2d686baece733
[receive_address] =&gt; U407 19 Hanover St
)

-- 05.15.15 23:18:41 --
stdClass Object
(
[order_id] =&gt; 64
[order_billing_address_id] =&gt; 22
[order_shipping_address_id] =&gt; 22
[order_user_id] =&gt; 11
[order_status] =&gt; created
[order_type] =&gt; sale
[order_number] =&gt; C6U4
[order_created] =&gt; 1431695527
[order_modified] =&gt; 1431695771
[order_invoice_id] =&gt; 0
[order_invoice_number] =&gt;
[order_invoice_created] =&gt; 0
[order_currency_id] =&gt; 38
[order_full_price] =&gt; 0.01000
[order_tax_info] =&gt; Array
(
)

[order_discount_code] =&gt;
[order_discount_price] =&gt; 0.00000
[order_discount_tax] =&gt; 0.00000
[order_payment_id] =&gt; 2
[order_payment_method] =&gt; alipay
[order_payment_price] =&gt; 0.00000
[order_payment_params] =&gt;
[order_shipping_id] =&gt;
[order_shipping_method] =&gt;
[order_shipping_price] =&gt; 0.00000
[order_shipping_tax] =&gt; 0.00000
[order_shipping_params] =&gt;
[order_partner_id] =&gt; 0
[order_partner_price] =&gt; 0.00000
[order_partner_paid] =&gt; 0
[order_partner_currency_id] =&gt; 0
[order_ip] =&gt; 115.64.108.79
[order_site_id] =&gt;
)

-- 05.15.15 23:18:41 --
stdClass Object
(
[order_id] =&gt; 64
[order_billing_address_id] =&gt; 22
[order_shipping_address_id] =&gt; 22
[order_user_id] =&gt; 11
[order_status] =&gt; created
[order_type] =&gt; sale
[order_number] =&gt; C6U4
[order_created] =&gt; 1431695527
[order_modified] =&gt; 1431695771
[order_invoice_id] =&gt; 0
[order_invoice_number] =&gt;
[order_invoice_created] =&gt; 0
[order_currency_id] =&gt; 38
[order_full_price] =&gt; 0.01000
[order_tax_info] =&gt; Array
(
)

[order_discount_code] =&gt;
[order_discount_price] =&gt; 0.00000
[order_discount_tax] =&gt; 0.00000
[order_payment_id] =&gt; 2
[order_payment_method] =&gt; alipay
[order_payment_price] =&gt; 0.00000
[order_payment_params] =&gt;
[order_shipping_id] =&gt;
[order_shipping_method] =&gt;
[order_shipping_price] =&gt; 0.00000
[order_shipping_tax] =&gt; 0.00000
[order_shipping_params] =&gt;
[order_partner_id] =&gt; 0
[order_partner_price] =&gt; 0.00000
[order_partner_paid] =&gt; 0
[order_partner_currency_id] =&gt; 0
[order_ip] =&gt; 115.64.108.79
[order_site_id] =&gt;
)

-- 05.15.15 23:18:41 --
Array
(
[scheme] =&gt; http
[host] =&gt; notify.alipay.com
[path] =&gt; /trade/notify_query.do
[query] =&gt; partner=2088912559319093¬ify_id=b7e89620380c399c5bcbd3256e2ee40c3s
[port] =&gt; 80
)

-- 05.15.15 23:18:46 --
Array
(
[0] =&gt; HTTP/1.1 200 OK

[1] =&gt; Server: Tengine/2.1.0

[2] =&gt; Date: Fri, 15 May 2015 13:18:33 GMT

[3] =&gt; Content-Type: text/html;charset=GBK

[4] =&gt; Content-Length: 4

[5] =&gt; Connection: close

[6] =&gt; Set-Cookie: JSESSIONID=C3435A84F2BF5B2138FB2EF4A154681C; Path=/

[7] =&gt; Set-Cookie: ALIPAYJSESSIONID=GZ00XRgPES621eaiHaFta0O8ZRLhxhsuperapiGZ00; Domain=.alipay.com; Path=/

[8] =&gt; Set-Cookie: ctoken=zm2nTjA4K7CypXqycCOfJALZUpO7d0; Domain=.alipay.com; Path=/

[9] =&gt; Cache-Control: max-age=0,no-cache

[10] =&gt; Expires: Thu, 05 Jan 1995 22:00:00 GMT

[11] =&gt; Pragma: no-cache

[12] =&gt; Set-Cookie: spanner=/Yd7Bz4dUzD6M5xJg5L8cb7MWl3iz1yw;path=/;secure;

[13] =&gt;

[14] =&gt; true
)

-- 05.15.15 23:18:46 --

sign1 :
8eeb1e02444a05271b8cc2e035f9dcf9

-- 05.15.15 23:18:46 --

sign2 :
71c7b9d9387f9a99aee2d686baece733

-- 05.15.15 23:18:46 --
invalid response

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzY5NzctYWxpcGF5LXJldHVybi11cmwtYW5kLW5vdGlmeS11cmwtc2VlbXMtaGF2ZS1pc3N1ZT90bXBsPW1hcmtkb3du) 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
-
-
-

11 years 5 months ago [\#201858](#201858) 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 *[alipay return\_url and notify\_url seems have issue](/forum/29-payment-methods/876977-alipay-return-url-and-notify-url-seems-have-issue#201858 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Chrome Version 42.0.2311.135 (64-bit)  Hi there,  I'm using alipay payment method for by website. Trade can be made after redirected to alipay website. However, the order status is not updating after redirected back to my site, although the message like &quot;Thank you for your purchage @ xxxxx&quot; is displaying properly.  I looked into the code, not sure if I found out the cause of issue or not: In the return&#95;url or notify&#95;url of alipay, they're: $notify&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=alipay&amp;tmpl=component&amp;lang='.$this-&gt;locale.$this-&gt;url&#95;itemid; and $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id.$this-&gt;url&#95;itemid;  They both have query string. However, in the integration document officially provided by alipay, says the reture&#95;url or notify&#95;url can't have query strings. Maybe that's why the order status from alipay seems not being read, and error email saying &quot;An Alipay notification was refused because the response from the Alipay server was invalid&quot; continually occurs.  I'm not sure how do you control this return&#95;url and notify&#95;url issue for alipay, so I'm trying to get help here.  Thanks for your time.  Regards, Yang")*

As it's said on the payment log file, your issue is coming from the fact that the "SIGN" code that your website calculated isn't the same as the Alipay platform :

> sign1 :
> 8eeb1e02444a05271b8cc2e035f9dcf9
>
> sign2 :
> 71c7b9d9387f9a99aee2d686baece733
> \[/code\]
>
> Also, note that the alipay payment method can't handle the "partner" mode, you should use the "direct" mode.

The following user(s) said Thank You: [aotogou@gmail.com](/forum/user/37081-aotogou-gmail-com "View aotogou@gmail.com's Profile")

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

- **[graceufo](/forum/user/12206-graceufo "View graceufo's Profile")**
- [![graceufo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12206-graceufo "View graceufo's Profile")
- [ Offline](/forum/user/12206-graceufo)

Less More

- Posts: 12
- Thank you received: 0
-
-

11 years 3 weeks ago [\#216191](#216191) by [graceufo](/forum/user/12206-graceufo "View graceufo's Profile")  Replied by *[graceufo](/forum/user/12206-graceufo "View graceufo's Profile")* on topic *[alipay return\_url and notify\_url seems have issue](/forum/29-payment-methods/876977-alipay-return-url-and-notify-url-seems-have-issue#216191 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Chrome Version 42.0.2311.135 (64-bit)  Hi there,  I'm using alipay payment method for by website. Trade can be made after redirected to alipay website. However, the order status is not updating after redirected back to my site, although the message like &quot;Thank you for your purchage @ xxxxx&quot; is displaying properly.  I looked into the code, not sure if I found out the cause of issue or not: In the return&#95;url or notify&#95;url of alipay, they're: $notify&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=alipay&amp;tmpl=component&amp;lang='.$this-&gt;locale.$this-&gt;url&#95;itemid; and $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id.$this-&gt;url&#95;itemid;  They both have query string. However, in the integration document officially provided by alipay, says the reture&#95;url or notify&#95;url can't have query strings. Maybe that's why the order status from alipay seems not being read, and error email saying &quot;An Alipay notification was refused because the response from the Alipay server was invalid&quot; continually occurs.  I'm not sure how do you control this return&#95;url and notify&#95;url issue for alipay, so I'm trying to get help here.  Thanks for your time.  Regards, Yang")*

I face the same problem.
any feedback.
thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzY5NzctYWxpcGF5LXJldHVybi11cmwtYW5kLW5vdGlmeS11cmwtc2VlbXMtaGF2ZS1pc3N1ZT90bXBsPW1hcmtkb3du) 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 3 weeks ago [\#216201](#216201) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[alipay return\_url and notify\_url seems have issue](/forum/29-payment-methods/876977-alipay-return-url-and-notify-url-seems-have-issue#216201 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Chrome Version 42.0.2311.135 (64-bit)  Hi there,  I'm using alipay payment method for by website. Trade can be made after redirected to alipay website. However, the order status is not updating after redirected back to my site, although the message like &quot;Thank you for your purchage @ xxxxx&quot; is displaying properly.  I looked into the code, not sure if I found out the cause of issue or not: In the return&#95;url or notify&#95;url of alipay, they're: $notify&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=alipay&amp;tmpl=component&amp;lang='.$this-&gt;locale.$this-&gt;url&#95;itemid; and $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id.$this-&gt;url&#95;itemid;  They both have query string. However, in the integration document officially provided by alipay, says the reture&#95;url or notify&#95;url can't have query strings. Maybe that's why the order status from alipay seems not being read, and error email saying &quot;An Alipay notification was refused because the response from the Alipay server was invalid&quot; continually occurs.  I'm not sure how do you control this return&#95;url and notify&#95;url issue for alipay, so I'm trying to get help here.  Thanks for your time.  Regards, Yang")*

Hi,

So, are you using the latest version of HikaShop ? If not, please update.
Then, if you still have the issue, please follow our instructions above and activate the debug mode of the payment plugin and do a test purchase again. Then, provide the content of the payment log file so that we can understand your issue.

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

- **[graceufo](/forum/user/12206-graceufo "View graceufo's Profile")**
- [![graceufo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12206-graceufo "View graceufo's Profile")
- [ Offline](/forum/user/12206-graceufo)

Less More

- Posts: 12
- Thank you received: 0
-
-

11 years 2 weeks ago [\#216547](#216547) by [graceufo](/forum/user/12206-graceufo "View graceufo's Profile")  Replied by *[graceufo](/forum/user/12206-graceufo "View graceufo's Profile")* on topic *[alipay return\_url and notify\_url seems have issue](/forum/29-payment-methods/876977-alipay-return-url-and-notify-url-seems-have-issue#216547 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Chrome Version 42.0.2311.135 (64-bit)  Hi there,  I'm using alipay payment method for by website. Trade can be made after redirected to alipay website. However, the order status is not updating after redirected back to my site, although the message like &quot;Thank you for your purchage @ xxxxx&quot; is displaying properly.  I looked into the code, not sure if I found out the cause of issue or not: In the return&#95;url or notify&#95;url of alipay, they're: $notify&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=alipay&amp;tmpl=component&amp;lang='.$this-&gt;locale.$this-&gt;url&#95;itemid; and $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id.$this-&gt;url&#95;itemid;  They both have query string. However, in the integration document officially provided by alipay, says the reture&#95;url or notify&#95;url can't have query strings. Maybe that's why the order status from alipay seems not being read, and error email saying &quot;An Alipay notification was refused because the response from the Alipay server was invalid&quot; continually occurs.  I'm not sure how do you control this return&#95;url and notify&#95;url issue for alipay, so I'm trying to get help here.  Thanks for your time.  Regards, Yang")*

Yes I am using the latest version.
and the debug report is below:(I have rewrite the buyer-email and seller-email for private reason,I think it does matter,right?)
Code:

-- 10.04.15 11:54:06 -- Array ( [option] =&gt; com_hikashop [ctrl] =&gt; checkout [task] =&gt; notify [notif_payment] =&gt; alipay [tmpl] =&gt; component [lang] =&gt; zh [Itemid] =&gt; 396 [discount] =&gt; 0.00 [payment_type] =&gt; 1 [subject] =&gt; order number : 11 [trade_no] =&gt; 2015100421001004080041989705 [buyer_email] =&gt; XXXXX@qq.com [gmt_create] =&gt; 2015-10-04 11:53:58 [notify_type] =&gt; trade_status_sync [quantity] =&gt; 1 [out_trade_no] =&gt; 11 [seller_id] =&gt; 2088021899249633 [notify_time] =&gt; 2015-10-04 11:54:06 [trade_status] =&gt; TRADE_SUCCESS [is_total_fee_adjust] =&gt; N [total_fee] =&gt; 1.00 [gmt_payment] =&gt; 2015-10-04 11:54:06 [seller_email] =&gt; [price] =&gt; 1.00 [buyer_id] =&gt; 2088102254263083 [notify_id] =&gt; d349dd864953c20e73aab77ec5cb722gm8 [use_coupon] =&gt; N [sign_type] =&gt; MD5 [sign] =&gt; 6164054b9dd39d130d9c849584c040ba ) -- 10.04.15 11:54:06 -- stdClass Object ( [order_id] =&gt; 11 [order_billing_address_id] =&gt; 1 [order_shipping_address_id] =&gt; 1 [order_user_id] =&gt; 1 [order_status] =&gt; created [order_type] =&gt; sale [order_number] =&gt; M11 [order_created] =&gt; 1443930823 [order_modified] =&gt; 1443930823 [order_invoice_id] =&gt; 0 [order_invoice_number] =&gt; [order_invoice_created] =&gt; 0 [order_currency_id] =&gt; 38 [order_full_price] =&gt; 1.00000 [order_tax_info] =&gt; Array ( ) [order_discount_code] =&gt; [order_discount_price] =&gt; 0.00000 [order_discount_tax] =&gt; 0.00000 [order_payment_id] =&gt; 2 [order_payment_method] =&gt; alipay [order_payment_price] =&gt; 0.00000 [order_payment_params] =&gt; [order_shipping_id] =&gt; [order_shipping_method] =&gt; [order_shipping_price] =&gt; 0.00000 [order_shipping_tax] =&gt; 0.00000 [order_shipping_params] =&gt; [order_partner_id] =&gt; 0 [order_partner_price] =&gt; 0.00000 [order_partner_paid] =&gt; 0 [order_partner_currency_id] =&gt; 0 [order_ip] =&gt; 119.120.238.112 [order_site_id] =&gt; [order_currency_info] =&gt; O:8:"stdClass":4:{s:13:"currency_code";s:3:"CNY";s:13:"currency_rate";s:7:"1.00000";s:20:"currency_percent_fee";s:4:"0.00";s:17:"currency_modified";s:10:"1443753389";} ) -- 10.04.15 11:54:06 -- stdClass Object ( [order_id] =&gt; 11 [order_billing_address_id] =&gt; 1 [order_shipping_address_id] =&gt; 1 [order_user_id] =&gt; 1 [order_status] =&gt; created [order_type] =&gt; sale [order_number] =&gt; M11 [order_created] =&gt; 1443930823 [order_modified] =&gt; 1443930823 [order_invoice_id] =&gt; 0 [order_invoice_number] =&gt; [order_invoice_created] =&gt; 0 [order_currency_id] =&gt; 38 [order_full_price] =&gt; 1.00000 [order_tax_info] =&gt; Array ( ) [order_discount_code] =&gt; [order_discount_price] =&gt; 0.00000 [order_discount_tax] =&gt; 0.00000 [order_payment_id] =&gt; 2 [order_payment_method] =&gt; alipay [order_payment_price] =&gt; 0.00000 [order_payment_params] =&gt; [order_shipping_id] =&gt; [order_shipping_method] =&gt; [order_shipping_price] =&gt; 0.00000 [order_shipping_tax] =&gt; 0.00000 [order_shipping_params] =&gt; [order_partner_id] =&gt; 0 [order_partner_price] =&gt; 0.00000 [order_partner_paid] =&gt; 0 [order_partner_currency_id] =&gt; 0 [order_ip] =&gt; 119.120.238.112 [order_site_id] =&gt; [order_currency_info] =&gt; O:8:"stdClass":4:{s:13:"currency_code";s:3:"CNY";s:13:"currency_rate";s:7:"1.00000";s:20:"currency_percent_fee";s:4:"0.00";s:17:"currency_modified";s:10:"1443753389";} ) -- 10.04.15 11:54:06 -- Array ( [scheme] =&gt; http [host] =&gt; www.alipay.com [path] =&gt; /cooperate/gateway.do [query] =&gt; service=notify_verify&amp;partner=2088021899249633¬ify_id=d349dd864953c20e73aab77ec5cb722gm8 [port] =&gt; 80 ) -- 10.04.15 11:54:06 -- Array ( [0] =&gt; HTTP/1.1 302 Found [1] =&gt; Server: Tengine/2.1.0 [2] =&gt; Date: Sun, 04 Oct 2015 03:54:06 GMT [3] =&gt; Content-Type: text/html [4] =&gt; Content-Length: 264 [5] =&gt; Connection: close [6] =&gt; Location: https://www.alipay.com/cooperate/gateway.do [7] =&gt; Set-Cookie: spanner=;path=/;secure; [8] =&gt; [9] =&gt; [10] =&gt; [11] =&gt; [12] =&gt; [13] =&gt; 302 Found [14] =&gt; The requested resource resides temporarily under a different URI. [15] =&gt; Powered by Tengine/2.1.0 [16] =&gt; ) -- 10.04.15 11:54:06 -- sign1 : 2cfa1fc514ca55b55bc3bb347a8b9861 -- 10.04.15 11:54:06 -- sign2 : 6164054b9dd39d130d9c849584c040ba -- 10.04.15 11:54:08 -- invalid response -- 10.04.15 11:58:12 -- Array ( [option] =&gt; com_hikashop [ctrl] =&gt; checkout [task] =&gt; notify [notif_payment] =&gt; alipay [tmpl] =&gt; component [lang] =&gt; zh [Itemid] =&gt; 396 [discount] =&gt; 0.00 [payment_type] =&gt; 1 [subject] =&gt; order number : 11 [trade_no] =&gt; 2015100421001004080041989705 [buyer_email] =&gt; 214756310@qq.com [gmt_create] =&gt; 2015-10-04 11:53:58 [notify_type] =&gt; trade_status_sync [quantity] =&gt; 1 [out_trade_no] =&gt; 11 [seller_id] =&gt; 2088021899249633 [notify_time] =&gt; 2015-10-04 11:58:12 [trade_status] =&gt; TRADE_SUCCESS [is_total_fee_adjust] =&gt; N [total_fee] =&gt; 1.00 [gmt_payment] =&gt; 2015-10-04 11:54:06 [seller_email] =&gt; service@XXXXXX.com [price] =&gt; 1.00 [buyer_id] =&gt; 2088102254263083 [notify_id] =&gt; d349dd864953c20e73aab77ec5cb722gm8 [use_coupon] =&gt; N [sign_type] =&gt; MD5 [sign] =&gt; 87c9e39d01cb7831a3975fd068da03ab ) -- 10.04.15 11:58:12 -- stdClass Object ( [order_id] =&gt; 11 [order_billing_address_id] =&gt; 1 [order_shipping_address_id] =&gt; 1 [order_user_id] =&gt; 1 [order_status] =&gt; created [order_type] =&gt; sale [order_number] =&gt; M11 [order_created] =&gt; 1443930823 [order_modified] =&gt; 1443930846 [order_invoice_id] =&gt; 0 [order_invoice_number] =&gt; [order_invoice_created] =&gt; 0 [order_currency_id] =&gt; 38 [order_full_price] =&gt; 1.00000 [order_tax_info] =&gt; Array ( ) [order_discount_code] =&gt; [order_discount_price] =&gt; 0.00000 [order_discount_tax] =&gt; 0.00000 [order_payment_id] =&gt; 2 [order_payment_method] =&gt; alipay [order_payment_price] =&gt; 0.00000 [order_payment_params] =&gt; [order_shipping_id] =&gt; [order_shipping_method] =&gt; [order_shipping_price] =&gt; 0.00000 [order_shipping_tax] =&gt; 0.00000 [order_shipping_params] =&gt; [order_partner_id] =&gt; 0 [order_partner_price] =&gt; 0.00000 [order_partner_paid] =&gt; 0 [order_partner_currency_id] =&gt; 0 [order_ip] =&gt; 119.120.238.112 [order_site_id] =&gt; [order_currency_info] =&gt; O:8:"stdClass":4:{s:13:"currency_code";s:3:"CNY";s:13:"currency_rate";s:7:"1.00000";s:20:"currency_percent_fee";s:4:"0.00";s:17:"currency_modified";s:10:"1443753389";} ) -- 10.04.15 11:58:12 -- stdClass Object ( [order_id] =&gt; 11 [order_billing_address_id] =&gt; 1 [order_shipping_address_id] =&gt; 1 [order_user_id] =&gt; 1 [order_status] =&gt; created [order_type] =&gt; sale [order_number] =&gt; M11 [order_created] =&gt; 1443930823 [order_modified] =&gt; 1443930846 [order_invoice_id] =&gt; 0 [order_invoice_number] =&gt; [order_invoice_created] =&gt; 0 [order_currency_id] =&gt; 38 [order_full_price] =&gt; 1.00000 [order_tax_info] =&gt; Array ( ) [order_discount_code] =&gt; [order_discount_price] =&gt; 0.00000 [order_discount_tax] =&gt; 0.00000 [order_payment_id] =&gt; 2 [order_payment_method] =&gt; alipay [order_payment_price] =&gt; 0.00000 [order_payment_params] =&gt; [order_shipping_id] =&gt; [order_shipping_method] =&gt; [order_shipping_price] =&gt; 0.00000 [order_shipping_tax] =&gt; 0.00000 [order_shipping_params] =&gt; [order_partner_id] =&gt; 0 [order_partner_price] =&gt; 0.00000 [order_partner_paid] =&gt; 0 [order_partner_currency_id] =&gt; 0 [order_ip] =&gt; 119.120.238.112 [order_site_id] =&gt; [order_currency_info] =&gt; O:8:"stdClass":4:{s:13:"currency_code";s:3:"CNY";s:13:"currency_rate";s:7:"1.00000";s:20:"currency_percent_fee";s:4:"0.00";s:17:"currency_modified";s:10:"1443753389";} ) -- 10.04.15 11:58:12 -- Array ( [scheme] =&gt; http [host] =&gt; www.alipay.com [path] =&gt; /cooperate/gateway.do [query] =&gt; service=notify_verify&amp;partner=2088021899249633¬ify_id=d349dd864953c20e73aab77ec5cb722gm8 [port] =&gt; 80 ) -- 10.04.15 11:58:12 -- Array ( [0] =&gt; HTTP/1.1 302 Found [1] =&gt; Server: Tengine/2.1.0 [2] =&gt; Date: Sun, 04 Oct 2015 03:58:12 GMT [3] =&gt; Content-Type: text/html [4] =&gt; Content-Length: 264 [5] =&gt; Connection: close [6] =&gt; Location: https://www.alipay.com/cooperate/gateway.do [7] =&gt; Set-Cookie: spanner=;path=/;secure; [8] =&gt; [9] =&gt; [10] =&gt; [11] =&gt; [12] =&gt; [13] =&gt; 302 Found [14] =&gt; The requested resource resides temporarily under a different URI. [15] =&gt; Powered by Tengine/2.1.0 [16] =&gt; ) -- 10.04.15 11:58:12 -- sign1 : 00b1321a2ff72f33445670c3d4d02f01 -- 10.04.15 11:58:12 -- sign2 : 87c9e39d01cb7831a3975fd068da03ab -- 10.04.15 11:58:13 -- invalid response

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzY5NzctYWxpcGF5LXJldHVybi11cmwtYW5kLW5vdGlmeS11cmwtc2VlbXMtaGF2ZS1pc3N1ZT90bXBsPW1hcmtkb3du) 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
-
-
-

11 years 2 weeks ago [\#216569](#216569) 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 *[alipay return\_url and notify\_url seems have issue](/forum/29-payment-methods/876977-alipay-return-url-and-notify-url-seems-have-issue#216569 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Chrome Version 42.0.2311.135 (64-bit)  Hi there,  I'm using alipay payment method for by website. Trade can be made after redirected to alipay website. However, the order status is not updating after redirected back to my site, although the message like &quot;Thank you for your purchage @ xxxxx&quot; is displaying properly.  I looked into the code, not sure if I found out the cause of issue or not: In the return&#95;url or notify&#95;url of alipay, they're: $notify&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=alipay&amp;tmpl=component&amp;lang='.$this-&gt;locale.$this-&gt;url&#95;itemid; and $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id.$this-&gt;url&#95;itemid;  They both have query string. However, in the integration document officially provided by alipay, says the reture&#95;url or notify&#95;url can't have query strings. Maybe that's why the order status from alipay seems not being read, and error email saying &quot;An Alipay notification was refused because the response from the Alipay server was invalid&quot; continually occurs.  I'm not sure how do you control this return&#95;url and notify&#95;url issue for alipay, so I'm trying to get help here.  Thanks for your time.  Regards, Yang")*

Hello,
You're actually having the same issue as aotogou@gmail.com : Code:

sign1 : 00b1321a2ff72f33445670c3d4d02f01 -- 10.04.15 11:58:12 -- sign2 : 87c9e39d01cb7831a3975fd068da03ab -- 10.04.15 11:58:13 -- invalid response

The "SIGN" code that your website calculated isn't the same as the Alipay platform, that can be coming from the way you have configured your Hikashop Alipay payment method (Security code/Partner ID/E-mail), or the way you have configured your Alipay account.

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

- **[graceufo](/forum/user/12206-graceufo "View graceufo's Profile")**
- [![graceufo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12206-graceufo "View graceufo's Profile")
- [ Offline](/forum/user/12206-graceufo)

Less More

- Posts: 12
- Thank you received: 0
-
-

11 years 1 week ago [\#217175](#217175) by [graceufo](/forum/user/12206-graceufo "View graceufo's Profile")  Replied by *[graceufo](/forum/user/12206-graceufo "View graceufo's Profile")* on topic *[alipay return\_url and notify\_url seems have issue](/forum/29-payment-methods/876977-alipay-return-url-and-notify-url-seems-have-issue#217175 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Chrome Version 42.0.2311.135 (64-bit)  Hi there,  I'm using alipay payment method for by website. Trade can be made after redirected to alipay website. However, the order status is not updating after redirected back to my site, although the message like &quot;Thank you for your purchage @ xxxxx&quot; is displaying properly.  I looked into the code, not sure if I found out the cause of issue or not: In the return&#95;url or notify&#95;url of alipay, they're: $notify&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=alipay&amp;tmpl=component&amp;lang='.$this-&gt;locale.$this-&gt;url&#95;itemid; and $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id.$this-&gt;url&#95;itemid;  They both have query string. However, in the integration document officially provided by alipay, says the reture&#95;url or notify&#95;url can't have query strings. Maybe that's why the order status from alipay seems not being read, and error email saying &quot;An Alipay notification was refused because the response from the Alipay server was invalid&quot; continually occurs.  I'm not sure how do you control this return&#95;url and notify&#95;url issue for alipay, so I'm trying to get help here.  Thanks for your time.  Regards, Yang")*

thanks for your reply.
I think I have the right setting in the alipay plugin.
because the plugin take affect.
but I don't understand why the sign is not the same.
have you any test on it?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzY5NzctYWxpcGF5LXJldHVybi11cmwtYW5kLW5vdGlmeS11cmwtc2VlbXMtaGF2ZS1pc3N1ZT90bXBsPW1hcmtkb3du) 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
-
-
-

11 years 1 week ago [\#217230](#217230) 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 *[alipay return\_url and notify\_url seems have issue](/forum/29-payment-methods/876977-alipay-return-url-and-notify-url-seems-have-issue#217230 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Chrome Version 42.0.2311.135 (64-bit)  Hi there,  I'm using alipay payment method for by website. Trade can be made after redirected to alipay website. However, the order status is not updating after redirected back to my site, although the message like &quot;Thank you for your purchage @ xxxxx&quot; is displaying properly.  I looked into the code, not sure if I found out the cause of issue or not: In the return&#95;url or notify&#95;url of alipay, they're: $notify&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=alipay&amp;tmpl=component&amp;lang='.$this-&gt;locale.$this-&gt;url&#95;itemid; and $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id.$this-&gt;url&#95;itemid;  They both have query string. However, in the integration document officially provided by alipay, says the reture&#95;url or notify&#95;url can't have query strings. Maybe that's why the order status from alipay seems not being read, and error email saying &quot;An Alipay notification was refused because the response from the Alipay server was invalid&quot; continually occurs.  I'm not sure how do you control this return&#95;url and notify&#95;url issue for alipay, so I'm trying to get help here.  Thanks for your time.  Regards, Yang")*

Hello,

1. Can you show me some screenshots of how you configured it ?

2. By the time I developed it, I had a customer account to directly test it, and it worked pretty fine, but now that we don't have any account we are not able to fully test it.

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

- **[graceufo](/forum/user/12206-graceufo "View graceufo's Profile")**
- [![graceufo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12206-graceufo "View graceufo's Profile")
- [ Offline](/forum/user/12206-graceufo)

Less More

- Posts: 12
- Thank you received: 0
-
-

11 years 1 week ago -  11 years 1 week ago [\#217504](#217504) by [graceufo](/forum/user/12206-graceufo "View graceufo's Profile")  Replied by *[graceufo](/forum/user/12206-graceufo "View graceufo's Profile")* on topic *[alipay return\_url and notify\_url seems have issue](/forum/29-payment-methods/876977-alipay-return-url-and-notify-url-seems-have-issue#217504 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Chrome Version 42.0.2311.135 (64-bit)  Hi there,  I'm using alipay payment method for by website. Trade can be made after redirected to alipay website. However, the order status is not updating after redirected back to my site, although the message like &quot;Thank you for your purchage @ xxxxx&quot; is displaying properly.  I looked into the code, not sure if I found out the cause of issue or not: In the return&#95;url or notify&#95;url of alipay, they're: $notify&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=alipay&amp;tmpl=component&amp;lang='.$this-&gt;locale.$this-&gt;url&#95;itemid; and $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id.$this-&gt;url&#95;itemid;  They both have query string. However, in the integration document officially provided by alipay, says the reture&#95;url or notify&#95;url can't have query strings. Maybe that's why the order status from alipay seems not being read, and error email saying &quot;An Alipay notification was refused because the response from the Alipay server was invalid&quot; continually occurs.  I'm not sure how do you control this return&#95;url and notify&#95;url issue for alipay, so I'm trying to get help here.  Thanks for your time.  Regards, Yang")*

My setting is below，anything we can do for the problem?
Please tell me more.Let's fix it!
[ ![hikashop.png](/forum/attachment/27087) ](/forum/attachment/27087 "hikashop.png")

- [ ![hikashop.png](/forum/attachment/27087) ](/forum/attachment/27087 "hikashop.png") [ ](/forum/attachment/27087?download=1 "hikashop.png")

Last edit: 11 years 1 week ago by [graceufo](/forum/user/12206-graceufo "View graceufo's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzY5NzctYWxpcGF5LXJldHVybi11cmwtYW5kLW5vdGlmeS11cmwtc2VlbXMtaGF2ZS1pc3N1ZT90bXBsPW1hcmtkb3du) 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
-
-
-

11 years 1 week ago [\#217532](#217532) 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 *[alipay return\_url and notify\_url seems have issue](/forum/29-payment-methods/876977-alipay-return-url-and-notify-url-seems-have-issue#217532 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.3 -- Browser(s) name and version -- : Chrome Version 42.0.2311.135 (64-bit)  Hi there,  I'm using alipay payment method for by website. Trade can be made after redirected to alipay website. However, the order status is not updating after redirected back to my site, although the message like &quot;Thank you for your purchage @ xxxxx&quot; is displaying properly.  I looked into the code, not sure if I found out the cause of issue or not: In the return&#95;url or notify&#95;url of alipay, they're: $notify&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=notify&amp;notif&#95;payment=alipay&amp;tmpl=component&amp;lang='.$this-&gt;locale.$this-&gt;url&#95;itemid; and $return&#95;url = HIKASHOP&#95;LIVE.'index.php?option=com&#95;hikashop&amp;ctrl=checkout&amp;task=after&#95;end&amp;order&#95;id='.$order-&gt;order&#95;id.$this-&gt;url&#95;itemid;  They both have query string. However, in the integration document officially provided by alipay, says the reture&#95;url or notify&#95;url can't have query strings. Maybe that's why the order status from alipay seems not being read, and error email saying &quot;An Alipay notification was refused because the response from the Alipay server was invalid&quot; continually occurs.  I'm not sure how do you control this return&#95;url and notify&#95;url issue for alipay, so I'm trying to get help here.  Thanks for your time.  Regards, Yang")*

Your settings seems to be correct ! (verifying the partner ID and Security code should be a good idea).

> Please tell me more.Let's fix it!

Without being able to directly test it do a "test purchase" I won't be able to understand from where the issue is coming from.

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

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

[](#top)
