Alex- Posted April 6, 2024 Share Posted April 6, 2024 (edited) Hello, After installing and configuring everything in live mode, the module Stripe Official keeps expecting and force to push the wrong webhook url : Expected webhook URL : https://www.domain.module/stripe_official/webhook but it should be : https://www.domain.fr/module/stripe_official/webhook ; like fixed on the Stripe.com > webhooks The module wants to update to domain.module/stripe instead of domain.fr/module I tried to look everywhere, remade the webhook, update the new webhook id in the db but it keeps asking the same wrong url and unfortunately all the orders made are not created in the BO, even if the payments have been received. The domain of the shop on prestashop is correct btw Shop url :https://www.domain.fr Physical url : / Thank you for your help. Edit 1 : I found out the issue might be caused by this function in the file /stripe_official.php /** * get webhook url of stripe_official module * * @return string */ public static function getWebhookUrl() { $context = Context::getContext(); $locale = $context->language->iso_code; $url = $context->link->getModuleLink( 'stripe_official', 'webhook', [], true, null, Configuration::get('PS_SHOP_DEFAULT') ); return str_replace($locale . '/', '', $url); } By changing this function by : /** * get webhook url of stripe_official module * * @return string */ public static function getWebhookUrl() { return 'https://www.domain.fr/module/stripe_official/webhook'; } Or by : public static function getWebhookUrl() { $context = Context::getContext(); // Obtenir l'URL générée dynamiquement $url = $context->link->getModuleLink( 'stripe_official', 'webhook', [], true, null, Configuration::get('PS_SHOP_DEFAULT') ); return $url; } I don't have the message shown in the backoffice anymore. I'm not sure if the webhook will works properly though. Edited April 6, 2024 by Alex- (see edit history) 1 Link to comment Share on other sites More sharing options...
Nickz Posted April 6, 2024 Share Posted April 6, 2024 Stripe has an excellent help section, that is the place to look first. Link to comment Share on other sites More sharing options...
Alex- Posted April 6, 2024 Author Share Posted April 6, 2024 Thanks for your reply. I fixed the issue myself with modification I have posted in my previous message in the edit. The function use "$locale" to get the iso code "fr" to remove from the URL /fr/ for example but it simply removes the "'.fr/". It's actually not an issue with Stripe but with the function in the module. As the website is in french "fr" and the domain extension is ".fr", the function truncate this part from the webhook URL. By changing the original function with the code I've modified, fix the issue. Link to comment Share on other sites More sharing options...
nrsoft Posted June 20, 2024 Share Posted June 20, 2024 @Alex- Thanks for the fix! The Stripe support for Prestashop does not seem very keen to answer any questions... Not sure if you had the same issue but I have also tried to enable the Express Checkout Buttons on product and cart pages but nothing is loading although the hooks are correctly inserted in the template. Link to comment Share on other sites More sharing options...
kamppa Posted June 30, 2024 Share Posted June 30, 2024 I have the same problem with some of our multistore sites. We also have the problem nrsoft mentioned. Also webhooks are not working they give response 403 status forbidden for the shops that have correct URL in webhooks. Despite of the problems with webhooks the orders seem to come through to back office just fine. Link to comment Share on other sites More sharing options...
BuddyTheElf Posted August 2, 2024 Share Posted August 2, 2024 I have the same problem as the author of the post. After updating the module to 3.3.2, the "Integrated payment form" option stopped working. Payment methods do not load. It only works in the "Redirect to Stripe" option. I manually changed the webook from "domain.module" to "domain.com", but unfortunately it did not help. Does anyone have a similar problem and know how to solve it? Link to comment Share on other sites More sharing options...
Nickz Posted August 2, 2024 Share Posted August 2, 2024 On 8/2/2024 at 10:22 AM, BuddyTheElf said: have the same problem as the author of the post. After updating the module to 3.3.2, the "Integrated payment form" option stopped working. Payment methods do not load. It only works in the "Redirect to Stripe" option. Expand Even with the same problem you need to give more details on the server, the store itself, update history. Link to comment Share on other sites More sharing options...
Luzernes Posted October 29, 2024 Share Posted October 29, 2024 On 8/2/2024 at 10:22 AM, BuddyTheElf said: I have the same problem as the author of the post. After updating the module to 3.3.2, the "Integrated payment form" option stopped working. Payment methods do not load. It only works in the "Redirect to Stripe" option. I manually changed the webook from "domain.module" to "domain.com", but unfortunately it did not help. Does anyone have a similar problem and know how to solve it? Expand Hi, have you found a solution? Link to comment Share on other sites More sharing options...
yama Posted October 29, 2024 Share Posted October 29, 2024 you can get support directly from : https://support.stripe.com/contact/email?topic=third_party_integrationshttps://support.stripe.com/contact/email?question=other&topic=third_party_integrations&subject=Prestashop Support Request&body=Include details of your Prestashop issue: 1 Link to comment Share on other sites More sharing options...
dominictayloruk Posted November 26, 2024 Share Posted November 26, 2024 Two things that need checking; - Make sure PS Checkout is installed and enabled otherwise the payments don’t show for stripe - Check the api key and the permissions as the required permissions aren’t set correctly when connecting the stripe plugin. You can see in the stripe workbench, some requests to customer are denied 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