• Resolved Law

    (@laucoste)


    Hi,

    In my WooCommerce configuration, when the payment of an order is validated, the payment processor send a webhook URL (mysite.com/?wc-api=WC_Payment_processor&Action=CheckoutSuccess& [etc.] )

    I’m also using Cloudflare :

    – When Cloudflare is disabled (paused), the order processing is OK, and the new order is added in WooCommerce with “Completed” status.

    – But, when Cloudflare is enabled, the new order does appear, but marked as “Pending payment”.
    In this case, the payment processor get a 503 error from my server.
    Of course, the client of the order does not get its product.

    I’ve followed instruction from here : https://community.cloudflare.com/t/community-tip-best-practices-for-configuring-ccbill-with-cloudflare/88823

    But for the moment, I still have the problem.

    Would you see, through your knowledge about CF, what could cause the problem, and maybe if a setting in WP Cloudflare Super Page Cache could help ?

    Thanks in advance for your assistance,

    Regards,
    Law

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Law

    (@laucoste)

    Complement : If I deactivate the main WAF in Cloudflare, there’s still the problem.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @laucoste,
    This is not supposed to happen as plugin automatically don’t cache any WooCommerce related pages. Do you have any extra page rules in your Cloudflare account?

    Also inside the plugin settings, under Cache tab within Prevent the following URIs to be cached can you add this following line:
    /*wc-api=*
    Update your settings. Purge the whole cache and test?

    Personally I also use WooCommerce but haven’t faced this issue with my payment gateway. Let me know if the issue gets resolved with the above approach. Also if you have other page rules try disabling them as well.

    • This reply was modified 4 years, 6 months ago by iSaumya.
    Thread Starter Law

    (@laucoste)

    Hello @isaumya

    Thank you for your reply.

    I’ve tried that (exclude “wc-api”) but with a slightly different format of the URL. I’ll try with yours.

    I thought about the user’ip that looks to be in cause :
    Does WP Cloudflare Super Page Cache manage the replacement of CF’s IP the user’s one ?
    Methods are explained here : https://support.cloudflare.com/hc/en-us/sections/200805497-Restoring-Visitor-IPs

    Regards,
    Law

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @laucoste,
    As far as I know, the plugin doesn’t touch the user IP in any way. But let’s wait for @salvatorefresta to come online in case he has something more to add on this matter.

    Thread Starter Law

    (@laucoste)

    Thank you @isaumya
    Finally I’ll quit CloudFlare. So I won’t follow up the defect.
    Thanks

    Thread Starter Law

    (@laucoste)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cloudflare causes 503 error’ is closed to new replies.