Jump to content

Confirmation Email before Payment


Recommended Posts

Hi, I'm using PrestaShop 8.2.1 with a payment gateway that redirects customers to their site after clicking "Place Order."

The problem is the order confirmation email is sent immediately, before the payment is made. This confuses customers—they think the order is done and don’t finish the payment.

How can I delay the confirmation email until after the payment has been validated. 

Thanks

Link to comment
Share on other sites

On 5/4/2025 at 11:09 AM, hemanshub said:

Hi, I'm using PrestaShop 8.2.1 with a payment gateway that redirects customers to their site after clicking "Place Order."

The problem is the order confirmation email is sent immediately, before the payment is made. This confuses customers—they think the order is done and don’t finish the payment.

How can I delay the confirmation email until after the payment has been validated. 

Thanks

Hello,

Prestashop sends the Order confirmation mail after creating an order in Prestashop. So it seems you are using a payment module that creates an order before collecting a payment or redirects to the payment page.

You can add a condition in the validateOrder function of PaymentModule.php to stop sending an Order confirmation when your payment module places an order.

  • Like 1
Link to comment
Share on other sites

  • 5 weeks later...

I'm using Paymob, but had the same issue before with MyFatoorah. This is for a hosted payment page, where the customer is redirected to the payment gateway to enter their payment details.

The order gets created when "Place Order" is clicked, and a confirmation email is sent right away — but since customers see the confirmation before paying, many assume the order is confirmed and don’t actually pay for the order.

Link to comment
Share on other sites

I have seen such behaviour in other payment methods where payment methods create an order in the pending status before making the payment. Ideally, there should be settings in the module not to create the order before making the payment (Restore cart etc). 

Have you checked with the module developer?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...