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

#   Can refunds automatically change the order status?

##

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

Less More

- Posts: 220
- Thank you received: 12
-
-

9 years 1 month ago [\#279245](#279245) by [joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")  *[Can refunds automatically change the order status?](/forum/35-orders-management/892121-can-refunds-automatically-change-the-order-status#279245 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.5.38  Hi,  When a Paypal refund is processed, I get the email:  Is there anyway of making the order status change to &quot;refunded&quot;?  Thank you.")* was created by *[joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")*

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.5.38

Hi,

When a Paypal refund is processed, I get the email:

> "Hello,
> A Paypal notification was received with the status Refunded. The order status was not changed"

Is there anyway of making the order status change to "refunded"?

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MjEyMS1jYW4tcmVmdW5kcy1hdXRvbWF0aWNhbGx5LWNoYW5nZS10aGUtb3JkZXItc3RhdHVzP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

9 years 1 month ago [\#279246](#279246) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Can refunds automatically change the order status?](/forum/35-orders-management/892121-can-refunds-automatically-change-the-order-status#279246 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.5.38  Hi,  When a Paypal refund is processed, I get the email:  Is there anyway of making the order status change to &quot;refunded&quot;?  Thank you.")*

Hi,

In your payment mehtod, you can change the "Invalid status" setting to "refunded" and that should do it.

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

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

Less More

- Posts: 220
- Thank you received: 12
-
-

9 years 1 month ago -  9 years 1 month ago [\#279319](#279319) by [joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")  Replied by *[joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")* on topic *[Can refunds automatically change the order status?](/forum/35-orders-management/892121-can-refunds-automatically-change-the-order-status#279319 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.5.38  Hi,  When a Paypal refund is processed, I get the email:  Is there anyway of making the order status change to &quot;refunded&quot;?  Thank you.")*

Hi Nicolas,

Thanks for your reply. I changed the "invalid status" to "refunded". I still get the same email:

"Hello,
A Paypal notification was received with the status Refunded. The order status was not changed

Check the documentation concerning this issue at [ www.hikashop.com/index.php?option=com\_up...-paypal-error#status](https://www.hikashop.com/index.php?option=com_updateme&ctrl=doc&component=HikaShop&page=payment-paypal-error#status)"

The order status within Hikashop is still unchanged.

Is there something else?

Thank you.

Last edit: 9 years 1 month ago by [joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile").

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

9 years 1 month ago [\#279325](#279325) 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 *[Can refunds automatically change the order status?](/forum/35-orders-management/892121-can-refunds-automatically-change-the-order-status#279325 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.5.38  Hi,  When a Paypal refund is processed, I get the email:  Is there anyway of making the order status change to &quot;refunded&quot;?  Thank you.")*

Hello,

Can you also check that you have correctly set the "Allow payment notifications from PayPal" option of your PayPal configuration page to Yes ?

Thank you.

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

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

Less More

- Posts: 220
- Thank you received: 12
-
-

9 years 1 month ago [\#279431](#279431) by [joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")  Replied by *[joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")* on topic *[Can refunds automatically change the order status?](/forum/35-orders-management/892121-can-refunds-automatically-change-the-order-status#279431 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.5.38  Hi,  When a Paypal refund is processed, I get the email:  Is there anyway of making the order status change to &quot;refunded&quot;?  Thank you.")*

Hi Mohamed,

Yes, "Allow payment notifications from PayPal" is set to Yes.

Thanks,
Josh.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MjEyMS1jYW4tcmVmdW5kcy1hdXRvbWF0aWNhbGx5LWNoYW5nZS10aGUtb3JkZXItc3RhdHVzP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

9 years 1 month ago [\#279602](#279602) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Can refunds automatically change the order status?](/forum/35-orders-management/892121-can-refunds-automatically-change-the-order-status#279602 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.5.38  Hi,  When a Paypal refund is processed, I get the email:  Is there anyway of making the order status change to &quot;refunded&quot;?  Thank you.")*

Hi,

Sorry, I checked the code and I was wrong. The status won't change when a refund notification is received. It has to be done manually.
Allowing that woul require the modification of the PayPal plugin file plugins/hikashoppayment/paypal/paypal.php, replacing the code: Code:

$this-&gt;modifyOrder($action, null, $history, $email);

by such code: Code:

if(preg_match('#Refunded#i', $vars['payment_status'])) $this-&gt;modifyOrder($order_id, 'refunded', $history, $email); else $this-&gt;modifyOrder($action, null, $history, $email);

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

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

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

Less More

- Posts: 220
- Thank you received: 12
-
-

9 years 1 month ago [\#279673](#279673) by [joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")  Replied by *[joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")* on topic *[Can refunds automatically change the order status?](/forum/35-orders-management/892121-can-refunds-automatically-change-the-order-status#279673 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.5.38  Hi,  When a Paypal refund is processed, I get the email:  Is there anyway of making the order status change to &quot;refunded&quot;?  Thank you.")*

Hi Nicolas,

Thanks for this! I will try this on my dev server later this week.

Is this problem amended with the latest version of Hikashop?

Thanks,
Josh.

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

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

Less More

- Posts: 220
- Thank you received: 12
-
-

9 years 1 month ago [\#279701](#279701) by [joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")  Replied by *[joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")* on topic *[Can refunds automatically change the order status?](/forum/35-orders-management/892121-can-refunds-automatically-change-the-order-status#279701 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.5.38  Hi,  When a Paypal refund is processed, I get the email:  Is there anyway of making the order status change to &quot;refunded&quot;?  Thank you.")*

Hello,

Thank you! I have this working. Where can I locate the email

> Hello,
> A Paypal notification was received with the status Refunded. The order status was not changed

I would like to change

> The order status was not changed

Thanks,
Josh.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MjEyMS1jYW4tcmVmdW5kcy1hdXRvbWF0aWNhbGx5LWNoYW5nZS10aGUtb3JkZXItc3RhdHVzP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

9 years 1 month ago -  9 years 1 month ago [\#279680](#279680) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Can refunds automatically change the order status?](/forum/35-orders-management/892121-can-refunds-automatically-change-the-order-status#279680 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.5.38  Hi,  When a Paypal refund is processed, I get the email:  Is there anyway of making the order status change to &quot;refunded&quot;?  Thank you.")*

Hi,

1. No. It's not a problem. It's done on purpose so as to not automatically cancel orders on your website, giving you the time to check that the payment notification is legit and you want to really change the status.

2. You can use a translation override in order to change that text:
[ www.hikashop.com/download/languages.html#modify](https://www.hikashop.com/download/languages.html#modify)

Last edit: 9 years 1 month ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

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

Less More

- Posts: 220
- Thank you received: 12
-
-

9 years 1 month ago [\#279801](#279801) by [joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")  Replied by *[joshualdouglas](/forum/user/49377-joshualdouglas "View joshualdouglas's Profile")* on topic *[Can refunds automatically change the order status?](/forum/35-orders-management/892121-can-refunds-automatically-change-the-order-status#279801 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.5.38  Hi,  When a Paypal refund is processed, I get the email:  Is there anyway of making the order status change to &quot;refunded&quot;?  Thank you.")*

Thank you very much! This is now working ![:)](/media/kunena/emoticons/3.png ":)")

Regards,
Josh.

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

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