• Resolved donaldjlove

    (@donaldjlove)


    We’re noticing an issue on our site with a payment plugin (Payment Plugins Braintree for Woocommerce) that is resolved (at least temporarily) by using the Purge All feature of the Litespeed plugin. This makes me think there’s some sort of caching issue in play.

    Periodically, the user will see the section for entering the credit card information, but is not allowed / able to enter any information. This results in them not being able to pay for their purchase. As mentioned above, clearing the Litespeed cache seems to fix this issue.

    After reaching out to the Payment Plugins folks for support, they responded with:

    In our experience the way to resolve that behavior is to add the Braintree external scripts to the list of excluded scripts in the lightspeed plugin. They should be excluded from deferred loading and async loading.

    All of the Braintree scripts start with:
    https://js.braintreegateway.com

    I’ve tried entering the url they provided in Litespeed Cache | Page Optimiziation | [8] Tuning | JS Deferred / Delayed Excludes as shown below. I think I’m messing something up, because the problem is recurring.

    Any comments on what I might be doing wrong or if the approach suggested by the Payment Plugins folks makes sense would be appreciated.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support qtwrk

    (@qtwrk)

    if it happens periodically , and temporarily fix by purge all , then it’s most likely a nonce issue

    do you see any 401 or 403 error on dev tool when this happens ?

    Thread Starter donaldjlove

    (@donaldjlove)

    I’ll have to look for the 401 or 403 errors next time I can reproduce the issue. I don’t have that data currently.

    Are there any best practices I can implement in the interim?

    Also, will it hurt anything to do what the Payment Plugins folks suggested, excluding the Braintree scripts from being deferred or loaded asynchronously? If not, how does one do that? I’m pretty sure I did not do it correctly.

    Plugin Support qtwrk

    (@qtwrk)

    no , that exclude JS doesn’t matter, it just effects the page optimization

    is this payment info form only shows up in cart/checkout page ?

    Thread Starter donaldjlove

    (@donaldjlove)

    The payment info form only shows up on the /checkout page.

    Plugin Support qtwrk

    (@qtwrk)

    now that is weird, by default cart/checkout page are not cached, not optimized

    please grab the HTML source code with and without cache plugin and do compare , see if there is any different.

    Thread Starter donaldjlove

    (@donaldjlove)

    I appreciate all of the help, especially considering this doesn’t look like it’s a caching issue to me (though my understanding of such things is limited).

    I’ve captured errors from the console of the Chrome inspector tool, screenshots below. Any suggestions would be appreciated.

    https://ibb.co/bRZ28Xh
    https://ibb.co/94Wkyzy

    Plugin Support qtwrk

    (@qtwrk)

    do you see these warning in dev tool if you open page with cache plugin off ?

    Thread Starter donaldjlove

    (@donaldjlove)

    Once the cache is cleared (Purge All), the errors / warnings shown in the screenshots are gone, at least temporarily.

    Where in the LS Plugin settings can I add the domain they suggested to make sure those scripts don’t get cached? I realize the /checkout page shouldn’t be getting cached to begin with, but the Braintree plugin folks are insistent.

    Please let me know if there’s anything I can try.

    Plugin Support qtwrk

    (@qtwrk)

    please go to Page Optm -> Tuning -> there are 3 JS excludes fields , add btriantree’s path into these 3 fields ,and purge all this will make sure plugin does not touch anything about it

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Conflict with Payment Plugin?’ is closed to new replies.