Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to look at the current version, PrestaShop 8. Read the current version of the documentation

Hook actionValidateOrderBefore

Informations

Before validating an order This hook is called before validating an order by core
Hook actionValidateOrderBefore
Locations
FO
Type action
Origin core
Aliases
Description This hook is called before validating an order by core

Located in

Origin File
core classes/PaymentModule.php

Call of the Hook in the origin file

Hook::exec('actionValidateOrderBefore', [
            'cart' => $this->context->cart,
            'customer' => $this->context->customer,
            'currency' => $this->context->currency,
            'id_order_state' => &$id_order_state,
            'payment_method' => $payment_method,
        ]);