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

#   PayPal Checkout: order\_creation\_notification email is sent even when the PayPal

##

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

Less More

- Posts: 18
- Thank you received: 1
-
-

1 year 2 weeks ago -  1 year 2 weeks ago [\#369438](#369438) by [pkaeller](/forum/user/83036-pkaeller "View pkaeller's Profile")  *[PayPal Checkout: order\_creation\_notification email is sent even when the PayPal](/forum/27-checkout/909907-paypal-checkout-order-creation-notification-email-is-sent-even-when-the-paypal#369438 "-- HikaShop version -- : 6.1.1 -- Joomla version -- : 5.4.0 -- PHP version -- : 8.3.0 -- Browser(s) name and version -- : Chrome 142.0.7444.60  Hi HikaShop Team,  I’m using HikaShop 6.1.1 on Joomla 5 (PHP 8.2) and I’m experiencing an issue with the PayPal Checkout payment plugin.  Problem description When a customer starts a PayPal Checkout payment but cancels it, HikaShop still:  &#42; creates the order  &#42; assigns the initial status (typically “open”)  &#42; immediately sends the order&#95;creation&#95;notification email  &#42; and only afterwards updates the order to “cancelled”  As a result, customers receive a full order confirmation for an order that was never completed.  The root cause seems to be that HikaShop triggers the order&#95;creation&#95;notification at the moment the order is created, before the final payment result is known.  Current configuration PayPal Checkout plugin settings:  &#42; Sofortige Ausführung = No  &#42; Ungültiger Status = storniert  &#42; Überprüfter Status = bezahlt  &#42; In Bearbeitung Status = unerledigt  Available order statuses: open, paid, cancelled, refunded, shipped, pending (&quot;unerledigt&quot;)  What I need I would like to achieve the following behavior:  &#42; Bank transfer / Offline payment: send order&#95;creation&#95;notification (status “open”)  &#42; PayPal successful payment: send order&#95;creation&#95;notification (status “paid”)  &#42; PayPal cancelled / not completed: do NOT send order&#95;creation&#95;notification  My question Is there an official or recommended way to prevent the order&#95;creation&#95;notification email from being sent until PayPal confirms a successful payment capture?  Right now, the email is always sent as soon as the order is created, regardless of whether the payment is completed or cancelled. The PayPal Checkout plugin changes the status afterwards, which is too late to prevent the email.  Thanks in advance! Patrick")* was created by *[pkaeller](/forum/user/83036-pkaeller "View pkaeller's Profile")*

-- HikaShop version -- : 6.1.1
-- Joomla version -- : 5.4.0
-- PHP version -- : 8.3.0
-- Browser(s) name and version -- : Chrome 142.0.7444.60

**Hi HikaShop Team,**

I’m using HikaShop 6.1.1 on Joomla 5 (PHP 8.2) and I’m experiencing an issue with the PayPal Checkout payment plugin.

**Problem description**
When a customer starts a PayPal Checkout payment but cancels it, HikaShop still:

1. creates the order
2. assigns the initial status (typically “open”)
3. immediately sends the order\_creation\_notification email
4. and only afterwards updates the order to “cancelled”

As a result, customers receive a full order confirmation for an order that was never completed.

The root cause seems to be that HikaShop triggers the order_creation_notification at the moment the order is created, before the final payment result is known.

**Current configuration**
PayPal Checkout plugin settings:

- Sofortige Ausführung = No
- Ungültiger Status = storniert
- Überprüfter Status = bezahlt
- In Bearbeitung Status = unerledigt

Available order statuses: open, paid, cancelled, refunded, shipped, pending ("unerledigt")

**What I need**
I would like to achieve the following behavior:

- Bank transfer / Offline payment: send order\_creation\_notification (status “open”)
- PayPal successful payment: send order\_creation\_notification (status “paid”)
- PayPal cancelled / not completed: do NOT send order\_creation\_notification

**My question**
Is there an official or recommended way to prevent the order_creation_notification email from being sent until PayPal confirms a successful payment capture?

Right now, the email is always sent as soon as the order is created, regardless of whether the payment is completed or cancelled. The PayPal Checkout plugin changes the status afterwards, which is too late to prevent the email.

Thanks in advance!
Patrick

Last edit: 1 year 2 weeks ago by [pkaeller](/forum/user/83036-pkaeller "View pkaeller's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwOTkwNy1wYXlwYWwtY2hlY2tvdXQtb3JkZXItY3JlYXRpb24tbm90aWZpY2F0aW9uLWVtYWlsLWlzLXNlbnQtZXZlbi13aGVuLXRoZS1wYXlwYWw/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: 86593
- Thank you received: 14334
-
-

1 year 2 weeks ago [\#369441](#369441) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Checkout: order\_creation\_notification email is sent even when the PayPal](/forum/27-checkout/909907-paypal-checkout-order-creation-notification-email-is-sent-even-when-the-paypal#369441 "-- HikaShop version -- : 6.1.1 -- Joomla version -- : 5.4.0 -- PHP version -- : 8.3.0 -- Browser(s) name and version -- : Chrome 142.0.7444.60  Hi HikaShop Team,  I’m using HikaShop 6.1.1 on Joomla 5 (PHP 8.2) and I’m experiencing an issue with the PayPal Checkout payment plugin.  Problem description When a customer starts a PayPal Checkout payment but cancels it, HikaShop still:  &#42; creates the order  &#42; assigns the initial status (typically “open”)  &#42; immediately sends the order&#95;creation&#95;notification email  &#42; and only afterwards updates the order to “cancelled”  As a result, customers receive a full order confirmation for an order that was never completed.  The root cause seems to be that HikaShop triggers the order&#95;creation&#95;notification at the moment the order is created, before the final payment result is known.  Current configuration PayPal Checkout plugin settings:  &#42; Sofortige Ausführung = No  &#42; Ungültiger Status = storniert  &#42; Überprüfter Status = bezahlt  &#42; In Bearbeitung Status = unerledigt  Available order statuses: open, paid, cancelled, refunded, shipped, pending (&quot;unerledigt&quot;)  What I need I would like to achieve the following behavior:  &#42; Bank transfer / Offline payment: send order&#95;creation&#95;notification (status “open”)  &#42; PayPal successful payment: send order&#95;creation&#95;notification (status “paid”)  &#42; PayPal cancelled / not completed: do NOT send order&#95;creation&#95;notification  My question Is there an official or recommended way to prevent the order&#95;creation&#95;notification email from being sent until PayPal confirms a successful payment capture?  Right now, the email is always sent as soon as the order is created, regardless of whether the payment is completed or cancelled. The PayPal Checkout plugin changes the status afterwards, which is too late to prevent the email.  Thanks in advance! Patrick")*

Hi,

You can edit your HikaShop emails in the menu System&gt;Emails. There, you have a setting "Payment methods" where you can select payment methods so that the email will only be sent if the order has one of these payment methods selected.
That way, you cant configure the order creation notification email to be sent only for bank transfers. And the order status notification will be sent when the order is confirmed after the payment for PayPal.

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

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

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

Less More

- Posts: 18
- Thank you received: 1
-
-

1 year 2 weeks ago [\#369448](#369448) by [pkaeller](/forum/user/83036-pkaeller "View pkaeller's Profile")  Replied by *[pkaeller](/forum/user/83036-pkaeller "View pkaeller's Profile")* on topic *[PayPal Checkout: order\_creation\_notification email is sent even when the PayPal](/forum/27-checkout/909907-paypal-checkout-order-creation-notification-email-is-sent-even-when-the-paypal#369448 "-- HikaShop version -- : 6.1.1 -- Joomla version -- : 5.4.0 -- PHP version -- : 8.3.0 -- Browser(s) name and version -- : Chrome 142.0.7444.60  Hi HikaShop Team,  I’m using HikaShop 6.1.1 on Joomla 5 (PHP 8.2) and I’m experiencing an issue with the PayPal Checkout payment plugin.  Problem description When a customer starts a PayPal Checkout payment but cancels it, HikaShop still:  &#42; creates the order  &#42; assigns the initial status (typically “open”)  &#42; immediately sends the order&#95;creation&#95;notification email  &#42; and only afterwards updates the order to “cancelled”  As a result, customers receive a full order confirmation for an order that was never completed.  The root cause seems to be that HikaShop triggers the order&#95;creation&#95;notification at the moment the order is created, before the final payment result is known.  Current configuration PayPal Checkout plugin settings:  &#42; Sofortige Ausführung = No  &#42; Ungültiger Status = storniert  &#42; Überprüfter Status = bezahlt  &#42; In Bearbeitung Status = unerledigt  Available order statuses: open, paid, cancelled, refunded, shipped, pending (&quot;unerledigt&quot;)  What I need I would like to achieve the following behavior:  &#42; Bank transfer / Offline payment: send order&#95;creation&#95;notification (status “open”)  &#42; PayPal successful payment: send order&#95;creation&#95;notification (status “paid”)  &#42; PayPal cancelled / not completed: do NOT send order&#95;creation&#95;notification  My question Is there an official or recommended way to prevent the order&#95;creation&#95;notification email from being sent until PayPal confirms a successful payment capture?  Right now, the email is always sent as soon as the order is created, regardless of whether the payment is completed or cancelled. The PayPal Checkout plugin changes the status afterwards, which is too late to prevent the email.  Thanks in advance! Patrick")*

Great, that worked. Thank you for the solution and the quick support.

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

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