In This Document
Are your payment forms not working correctly for logged out users, or intermittently, with the SiteGround Optimizer plugin? Follow the steps below to ensure WP Simple Pay functions as expected with the SiteGround Optimizer plugin active.
Exclude URLs from caching
To ensure that your payments forms work properly in conjunction with SiteGround Optimizer, you need to exclude your payment form and payment confirmation page URLs from caching in the SG Optimizer → Caching settings, as shown below.
After confirming the excluded URLs, use the “Test URL Caching Status” tool to verify that your payment form pages are indeed not being cached.
Exclude scripts from various optimizations
https://js.stripe.com/v3/ /plugins/wp-simple-pay-pro-3/includes/core/assets/js/simpay-public-shared.min.js /plugins/wp-simple-pay-pro-3/includes/core/assets/js/simpay-public.min.js /plugins/wp-simple-pay-pro-3/includes/core/assets/js/vendor/accounting.min.js /plugins/wp-simple-pay-pro-3/includes/pro/assets/js/simpay-public-pro.min.js
You can read more about SiteGround Optimizers frontend optimization settings on their website.