David Bisset
Forum Replies Created
-
Hey @tecosud3
Thanks for reaching out. There isn’t a built-in way, but there’s a code snippet that should work. We host our snippets on WPCode: https://library.wpcode.com/snippet/g5gqzy2m/
Hope this helps! Let me know if you have any questions.
Thank you for that follow-up. That is very helpful information.
Knowing that Stripe works correctly tells us the problem is isolated specifically to the PayPal gateway integration and is not a general form issue. The “pending payments” you see confirm that Charitable is creating the donation, but the critical redirect to PayPal is failing (and incorrectly sending you to the login page – i assume that’s still happening?).
This behavior is most often caused by a plugin or theme conflict, especially security, caching, or membership plugins that can interfere with outgoing redirects.
You didn’t mention this in the reply so can you confirm you tried this?
- Deactivate all plugins except Charitable.
- Switch to a default WordPress theme (like Twenty Twenty-Four).
- Test the PayPal donation again.
If it works, you can reactivate your theme and other plugins one by one, testing after each, until the problem returns. That will identify the source of the conflict. Also make sure WP_DEBUG and WP_DEBUG_LOG are true and we can check there for any clues as well.
Let me know what you find. Thanks!
@apeacewithin Thanks for reaching out.
That is odd. Normally when you submit the donation form it should go to PayPal. Let’s try a few things:
- Do you have another payment gateway available? Can you test this with offline payment gateway and see if your test payment goes to a receipt page or the login page?
- Can you deactivate all plugin BUT Charitable, switch to a default WordPress them, clear permalinks (if you don’t know how, this provides some ways to do this https://www.wpbeginner.com/beginners-guide/how-to-regenerate-your-permalinks-in-wordpress/ ). Then repeat the donation test.
- You can enable WP_DEBUG and WP_DEBUG_LOG and examine to see if any errors are being recorded by WordPress during the test. Here’s a guide to enable this https://www.wpbeginner.com/wp-tutorials/how-to-easily-enable-wordpress-debug-mode-to-fix-site-errors/ – the debug.log file (usually in the wp-content folder, or visible by a plugin) would be the file to look at. Fatal errors or PHP warnings might hold a clue here.
By the initial looks of things, you might have a plugin or some sort of conflict. Feel free to share if you get any results from the above and feel free to share a public link for us to examine, although not much troubleshooting can be done – but we are always willing to try. 🙂
Hope this helps. Let me know if you have any questions.We are going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.
Thanks!
@marcosmnc Hi, thanks for following up.
Double check the settings you added to prevent caching and make sure the caching isn’t enabled for https://www.laultimamedina.com/donar/. I did a “view source” just now and at the bottom of the page I still see W3 Total Cache there, so it appears that it’s not disabled on this page: https://a.supportally.com/i/QuB3LS
If for some reason you can’t disable caching (but you should be able to) for this page and can deactivate the plugin entirely for a little while, that is also an option.
I also provided some information in my previous reply about (1) Stripe webhooks and (2) enable WordPress debugging. I would follow these suggestions next as well and if you run into issues updating the files I would reach out to your hosting company for assistance.
You can add these to wp-config.php.
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('CHARITABLE_DEBUG', true);Any errors will be saved to a file at
/wp-content/debug.log.Since we know where Charitable shows the error to the user, the logs will help determine what might be recorded in terms of any errors that is causing this in the first place.
Hope this helps. Let me know if you have any further questions.
@marcosmnc Thanks for reaching out!
Caching is LIKELY involved here – and obvious attention first would be at W3 Total Cache which you have currently installed. The plugin may be saving old information on your donation pages, which can lead to errors during the submission process and cause a few issues.A good first step is to add exclusion rules in W3 Total Cache to prevent it from caching dynamic pages. The location of these settings can vary between plugin versions, so you may need to look for sections like “Never cache the following pages” or “Page Cache Exclusions.” If you cannot find these settings, consulting the W3 Total Cache documentation or their support may be necessary.
Try adding the following paths to the exclusion rules for Page Cache, Database Cache, and Object Cache (assuming you are using Charitable’s built in page paths for donations and campaigns).
/donate/*
/campaign/*
/wp-admin/admin-ajax.phpTo help with the “pending” donations, you can check your Stripe webhook configuration.
- In your Stripe Dashboard, navigate to Developers > Webhooks.
- Confirm the endpoint URL is set to:
https://yoursite.com/wp-admin/admin-ajax.php?action=charitable_stripe_webhook - Ensure these events are enabled:
payment_intent.succeeded,checkout.session.completed, andinvoice.payment_succeeded.
If the problem continues, you might need to add some code snippets to your site’s core files. If you’re not comfortable editing these files yourself, your website’s hosting company can often help you with these changes. Enable WordPress debugging to help identify specific errors. To do this, you’ll need to add code to your
wp-config.phpfile. or ask your host to add the following lines for you. Once you do this you can look at the log file to see if any PHP errors (fatal, etc.) appear.Since you can’t reproduce the issue every time, I would focus on the caching issue first. Disabling the plugin entirely would rule it out, otherwise see if you can add the exclusion rules and confirm with their support. I hope this helps! Let me know if you have any further questions.
- This reply was modified 9 months ago by David Bisset.
@nathanrompa12 thank you very much. Glad you enjoy the plugin and we will continue to make Charitable customizable. much appreciated!
We are going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.
Thanks!
We are going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.
Thanks!
Hi @svzgsgps – thanks for reaching out.
Currently Charitable does not have any effect on PayPal fees. The donation form submits the amount straight to PayPal.You’ve accurately pointed out that properly calculating “donor covers the fee” to account for PayPal’s methodology is a complex function. Charitable has a fee relief addon for our pro plugin for this exact reason.
On the PayPal side, I have two suggestions to maximize your donations:
- Confirm Your Charity Status: Ensure your 501(c)(3) is confirmed with PayPal to receive their significantly lower charity processing rates.
- Use the PayPal Giving Fund: Promote your organization’s PayPal Giving Fund profile. Donations made through this channel have zero processing fees, meaning you receive 100% of every gift. You will need to contact and confirm with Paypal for more on this.
I hope this information is helpful.
Thank you for reaching out @lpharr I’m sorry to hear you’re dealing with spam donations; I know how frustrating that can be.
With the free version of Charitable the most effective solution is to install a dedicated anti-spam plugin. These work with your existing forms to block bots automatically. You can find excellent free options in the WordPress plugin directory like Antispam Bee, WP Armour (Honeypot), or Simple Cloudflare Turnstile (CAPTCHA).
For an even higher level of protection – and something I would recommend personally – you can use a free Web Application Firewall (WAF) service like Cloudflare, which blocks malicious traffic before it ever reaches your site.
You can also check and see if you can set a minimum donation amount for your campaigns, which would help it sounds like based on what you are seeing.
Important: Before installing new plugins, please be sure to create a full backup of your website first.
I’m confident these steps will solve the problem for you. Let me know if you have any other questions!
@mmprins No problem! We are happy to get feedback on gateways we aren’t supporting yet. We are adding more to our roadmap. ANY input is appreciated. If you have any other questions reach out. We are here to help. 👍🏻
@mmprins Hi! Thanks for reaching out! Good question!
Charitable does not currently support iDEAL but we have gotten some requests for it, and our team is considering adding to the roadmap. If and/or when we do come out with this option I would be happy to reach out to you if you wish. Thanks!
@todomar Thanks for reaching out to us about this!
I connected with our team on this and we should have an update to Charitable lite available by this time next week to resolve this. I can update this thread once that release is out if you wish. Let me know if you have any further questions!
We are going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.
Thanks!