Skip to main content

Can refunds automatically change the order status?

More
9 years 1 week ago #279245 by joshualdouglas
-- 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 or Create an account to join the conversation.

More
9 years 1 week ago #279246 by nicolas
Hi,

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

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

More
9 years 1 week ago - 9 years 1 week ago #279319 by joshualdouglas
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 "

The order status within Hikashop is still unchanged.

Is there something else?

Thank you.
Last edit: 9 years 1 week ago by joshualdouglas.

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

More
9 years 1 week ago #279325 by Mohamed Thelji
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 or Create an account to join the conversation.

More
9 years 1 week ago #279431 by joshualdouglas
Hi Mohamed,

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

Thanks,
Josh.

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

More
9 years 4 days ago #279602 by nicolas
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->modifyOrder($action, null, $history, $email);
by such code:
Code:
if(preg_match('#Refunded#i', $vars['payment_status'])) $this->modifyOrder($order_id, 'refunded', $history, $email); else $this->modifyOrder($action, null, $history, $email);
The following user(s) said Thank You: joshualdouglas

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

More
9 years 3 days ago #279673 by joshualdouglas
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 or Create an account to join the conversation.

More
9 years 3 days ago #279701 by joshualdouglas
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 or Create an account to join the conversation.

More
9 years 2 days ago - 9 years 2 days ago #279680 by nicolas
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
Last edit: 9 years 2 days ago by nicolas.
The following user(s) said Thank You: joshualdouglas

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

More
9 years 2 days ago #279801 by joshualdouglas
Thank you very much! This is now working :)

Regards,
Josh.

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

Time to create page: 0.279 seconds
Powered by Kunena Forum