202-ecommerce / stripe_official

After years of hard work with Stripe connector for PrestaShop, 202 ecommerce stop the development of Stripe module on January 9th 2023. Thanks for all contributors that help us!
20 stars 20 forks source link

Deprecation notice in webhook #197

Closed lmeyer1 closed 1 year ago

lmeyer1 commented 1 year ago

I get the following notice frequently in the table ps_log:

The function getByOrderId (Line 658) is deprecated and will be removed in the next major version.

Digging deeper, here is the stacktrace:

/classes/PrestaShopLogger.php dans PrestaShopLogger::addLog à la ligne 144
/classes/Tools.php dans ToolsCore::throwDeprecated à la ligne 3176
/classes/Tools.php dans ToolsCore::displayAsDeprecated à la ligne 3144
/classes/order/OrderPayment.php dans OrderPaymentCore::getByOrderId à la ligne 83
/modules/stripe_official/classes/actions/ValidationOrderActions.php dans ValidationOrderActions::addTentative à la ligne 658
Called from: [internal] dans call_user_func_array
/modules/stripe_official/vendor/totpsclasslib/src/Actions/ActionsHandler.php dans Stripe_officialClasslib\Actions\ActionsHandler::process à la ligne 154
/modules/stripe_official/controllers/front/webhook.php dans stripe_officialWebhookModuleFrontController::handleWebhookActions à la ligne 570
/modules/stripe_official/controllers/front/webhook.php dans stripe_officialWebhookModuleFrontController::postProcess à la ligne 171
/classes/controller/Controller.php dans ControllerCore::run à la ligne 295
/classes/Dispatcher.php dans DispatcherCore::dispatch à la ligne 530
/index.php à la ligne 28
clotairer commented 1 year ago

Thanks @lmeyer1 We will study it.

Afayadas commented 1 year ago

Hello @lmeyer1, Thank you for your comment, this issue has already been solved in the latest release 2.5.0. You can see the changes in this link

lmeyer1 commented 1 year ago

Thank you