PayPal Checkout: order_creation_notification email is sent even when the PayPal

  • Posts: 18
  • Thank you received: 1
  • Hikashop Business
6 hours 23 minutes ago #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:

  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: 6 hours 16 minutes ago by pkaeller.

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

  • Posts: 84713
  • Thank you received: 13780
  • MODERATOR
2 hours 38 minutes ago #369441

Hi,

You can edit your HikaShop emails in the menu System>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

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

  • Posts: 18
  • Thank you received: 1
  • Hikashop Business
52 minutes ago #369448

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

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

Time to create page: 0.055 seconds
Powered by Kunena Forum