dostoyevski Posted October 16, 2022 Share Posted October 16, 2022 Hola, queria saber si este hook: public function hookActionPaymentConfirmation($params) se activara cada vez que haya una venta ya sea pagada con paypal o con redsys. Un saludo. Link to comment Share on other sites More sharing options...
joseantgv Posted October 24, 2022 Share Posted October 24, 2022 Si no hay ningún error en el momento de crear el pedido, sí. Ese hook se llama en la función changeIdOrderState de la clase OrderHistory: if (in_array($new_os->id, [Configuration::get('PS_OS_PAYMENT'), Configuration::get('PS_OS_WS_PAYMENT')])) { Hook::exec('actionPaymentConfirmation', ['id_order' => (int) $order->id], null, false, true, false, $order->id_shop); } Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now