-- 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:
- creates the order
- assigns the initial status (typically “open”)
- immediately sends the order_creation_notification email
- 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