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

#   Redirect or fail in payment trigger cancelled order status e-mail to customer

##

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

Less More

- Posts: 88
- Thank you received: 20
-
-

7 years 4 months ago [\#308470](#308470) by [dyvel](/forum/user/39996-dyvel "View dyvel's Profile")  *[Redirect or fail in payment trigger cancelled order status e-mail to customer](/forum/29-payment-methods/897837-redirect-or-fail-in-payment-trigger-cancelled-order-status-e-mail-to-customer#308470 "-- HikaShop version -- : 4.1.0  Hi I have a case where multiple customers are reporting they have received cancelled mails even though they have successfully paid. I was digging into the issue, and found that if a payment fails, e.g. customer has entered wrong payment details at the payment gateway OR if 3D Secure is required, a fail or redirect message is sent back (callback) from the payment gateway to Hikashop.  Hikashop then reacts on this and sends an &quot;order is cancelled&quot; order status email. But the order is never cancelled.  Payment gateway in question is Quickpay.  My question is: can we prevent these mails from being sent?")* was created by *[dyvel](/forum/user/39996-dyvel "View dyvel's Profile")*

-- HikaShop version -- : 4.1.0

Hi
I have a case where multiple customers are reporting they have received cancelled mails even though they have successfully paid. I was digging into the issue, and found that if a payment fails, e.g. customer has entered wrong payment details at the payment gateway OR if 3D Secure is required, a fail or redirect message is sent back (callback) from the payment gateway to Hikashop.

Hikashop then reacts on this and sends an "order is cancelled" order status email. But the order is never cancelled.

Payment gateway in question is Quickpay.

My question is: can we prevent these mails from being sent?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTc4MzctcmVkaXJlY3Qtb3ItZmFpbC1pbi1wYXltZW50LXRyaWdnZXItY2FuY2VsbGVkLW9yZGVyLXN0YXR1cy1lLW1haWwtdG8tY3VzdG9tZXI/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

7 years 4 months ago [\#308475](#308475) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Redirect or fail in payment trigger cancelled order status e-mail to customer](/forum/29-payment-methods/897837-redirect-or-fail-in-payment-trigger-cancelled-order-status-e-mail-to-customer#308475 "-- HikaShop version -- : 4.1.0  Hi I have a case where multiple customers are reporting they have received cancelled mails even though they have successfully paid. I was digging into the issue, and found that if a payment fails, e.g. customer has entered wrong payment details at the payment gateway OR if 3D Secure is required, a fail or redirect message is sent back (callback) from the payment gateway to Hikashop.  Hikashop then reacts on this and sends an &quot;order is cancelled&quot; order status email. But the order is never cancelled.  Payment gateway in question is Quickpay.  My question is: can we prevent these mails from being sent?")*

Hi,

Yes. This comes from the code of the QuickPay plugin : Code:

$order_status = $this-&gt;payment_params-&gt;invalid_status; $history-&gt;data .= "QuickPay ID:" . $callback_data-&gt;id . "&lt;br /&gt;Type: ". ucfirst($operationData[$operRunID]-&gt;type) . "&lt;br /&gt; Status: ". $status_codes[$operationData[$operRunID]-&gt;qp_status_code]; $history-&gt;notified = 1;

in plugins/hikashoppayment/quickpay/quickpay.php
If you change the $history-&gt;notified = 1; to $history-&gt;notified = 0; then the customer won't be notified when the status is changed to "cancelled".
I would recommend to report the issue to quickpay so that they can have a look to the situation since they develop the plugin and they might want to include that change or some other change to take your situation into account.

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

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

Less More

- Posts: 88
- Thank you received: 20
-
-

7 years 4 months ago [\#308518](#308518) by [dyvel](/forum/user/39996-dyvel "View dyvel's Profile")  Replied by *[dyvel](/forum/user/39996-dyvel "View dyvel's Profile")* on topic *[Redirect or fail in payment trigger cancelled order status e-mail to customer](/forum/29-payment-methods/897837-redirect-or-fail-in-payment-trigger-cancelled-order-status-e-mail-to-customer#308518 "-- HikaShop version -- : 4.1.0  Hi I have a case where multiple customers are reporting they have received cancelled mails even though they have successfully paid. I was digging into the issue, and found that if a payment fails, e.g. customer has entered wrong payment details at the payment gateway OR if 3D Secure is required, a fail or redirect message is sent back (callback) from the payment gateway to Hikashop.  Hikashop then reacts on this and sends an &quot;order is cancelled&quot; order status email. But the order is never cancelled.  Payment gateway in question is Quickpay.  My question is: can we prevent these mails from being sent?")*

Awesome - thank you ![:-)](/media/kunena/emoticons/3.png ":-)")

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

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

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