• Resolved pipoulito

    (@pipoulito)


    Hi,

    After some payement are confirmed by the bank of the customer , he goes back to the checkout page instead of the thank you page.

    the order is completed , and payment is confirmed in my Stripe dashboard.

    how could i fix this please ?

    thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi @pipoulito,

    I understand you’re seeing customers being redirected back to the checkout page instead of the thank-you page after their payments are confirmed in Stripe. That behavior usually indicates a mismatch between the Stripe webhook events and the site’s response, meaning WooCommerce may not be receiving the correct payment confirmation to trigger the order completion redirect.

    Please start by confirming that your webhooks are correctly configured and active in your Stripe Dashboard under Developers > Webhooks. The endpoint should be set to your site’s URL followed by /wc-api/WC_Gateway_Stripe/. You can learn more about how to properly configure and test webhooks here: https://woocommerce.com/document/stripe/setup-and-configuration/stripe-webhooks/#verifying

    If the webhooks are correctly configured and the issue persists, it would be helpful to review your site’s Stripe logs by navigating to WooCommerce > Status > Logs, and selecting the most recent Stripe log file from the dropdown. You can share the relevant log output via https://pastebin.com so we can take a closer look.

    Let’s get that working smoothly so your customers are correctly redirected to the thank-you page after payment confirmation.

    Thread Starter pipoulito

    (@pipoulito)

    Hi

    webhook is ok because it works for some others orders

    i have no stripe log in this dropdown

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    Thanks for reaching out!

    Just to clarify — are all customers being redirected back to the checkout page after payment, or is this only happening for some of them?

    Also, are you able to replicate this issue on your end? If so, could you please confirm which payment method was used for the orders where users were redirected back to the checkout page instead of the thank you page?

    Additionally, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    • System Status Report which you can find via WooCommerce > Status
    • Fatal error logs (if any) under WooCommerce > Status > Logs.

    Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.

    Thread Starter pipoulito

    (@pipoulito)

    https://pastebin.com/ec54sfsJ

    https://pastebin.com/mdPwMVtB

    here it is
    can i for to display bank confirmation step ? Sometimes i buy and it is not requested.

    I think all the customers are not concerned by this issue

    Hi @pipoulito,

    Thank you for sharing the report and log. After reviewing them, I noticed that several of your plugins are outdated. Please update all your plugins and then share your system status report again.

    I also see that the AutomateWoo plugin is outdated, and there’s an active autocomplete order plugin on your site. We’ll address that afterward, but for now, please proceed with updating your plugins and reshare the updated report.

    Thread Starter pipoulito

    (@pipoulito)

    maybe because i use a hook with template_redirect ?

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for the update, Yes, that could definitely affect the redirect after checkout. I’d recommend temporarily disabling that custom code to see if the issue still happens.

    Could you share what that hook is doing, or the code you’ve added? That will help us check whether it’s interfering with the normal redirect to the Thank You page.

    Thread Starter pipoulito

    (@pipoulito)

    i have changed to add_action(‘woocommerce_before_calculate_totals’, ‘custom_cart_total’);

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thanks for the update!

    Just to clarify — you mentioned that you previously used a template_redirect hook, but now you’re using: add_action( ‘woocommerce_before_calculate_totals’, ‘custom_cart_total’ );
    Is that correct?

    Also, just to confirm, have you updated all plugins on your site and then tried to reproduce the issue? Were you able to replicate it after updating?

    Since you mentioned that not all customers are affected, is there anything common between the orders where the issue happens — for example, a specific payment method, product, or order type? Knowing that may help narrow down the cause.



    Plugin Support thelmachido a11n

    (@thelmachido)

    It’s been a while since we heard back from you for this reason we are closing this thread. 

    If Stripe for WooCommerce has been useful for your store and you appreciate the support you’ve received, we’d truly appreciate it if you could leave us a quick review here: 

    https://ww.wp.xz.cn/support/plugin/woocommerce-gateway-stripe/reviews/

    Feel free to open a new forum topic if you run into any other problem.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Return page’ is closed to new replies.