WPCharitable
Forum Replies Created
-
We applied this to the WordPress default Twenty-Twenty theme:
twentytwenty/charitable/donation-form/donation-amount-wrapper.php
…and that works for us. If you don’t see it, check your cache and maybe try this with a default theme. Hope this helps!
@jdowns1 For this, the best option isn’t a hook but you’ll have to modify a template (which means copying a template and adding it to your child/current theme). Thankfully this is fairly straight forward. this is the file:
/charitable/templates/donation-form/donation-amount-wrapper.php
Note the sample code I added: https://a.supportally.com/i/aKtvft
Note where it shows up: https://a.supportally.com/i/E7EGj1
You should be able to tweak that template file for exactly how you want it displayed, but that’s where I would focus.
I hope this helps and answers your question. 🙂
@nicemodernwebsites Thank you very much! Appreciate the mention!
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!
@jdowns1 I would try that suggested hook – or you will notice in that same template file the charitable_donation_form_after_donation_amounts is also something you can hook into.
@jdowns1 Thanks for reaching out.
Couldn’t see the image (I assume) in the supplied link, but if you are talking about adding content to the after the donation options are displayed in the donation form template, there’s an action to hook into for that:
charitable_donation_form_after_donation_amountHere’s the hook inside the /charitable/templates/donation-form/donation-amount.php file:
/** * Do something after the donation options fields. * * @since 1.0.0 * * @param Charitable_Donation_Form $form An instance ofCharitable_Donation_Form. */ do_action( 'charitable_donation_form_after_donation_amount', $form );You can also copy the template file from Charitable and put it in your own theme to override but the hook is the recommended option.
I hope this helps!
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!
@armourpayments – thank you! we try our best, but we truly appreciate it.
@waltervds Thanks for reaching out.
So Bancontact is a separate payment method in Stripe, not a card. Charitable currently handles payment methods in Stripe that doesn’t support what you are trying to do. We are working on switching to a new API in Stripe that allows additional payment methods that include the one you are mentioning. We can reach out to you if you are interested in testing the beta or when it’s released, but it’s not something we have immediate on our roadmap.
I hope this helps and let us know if you have any further questions.
@daridavis thanks for the update. Your situation sounds similar, so I would go through the correspondence with @krutiw29 and try all the suggestions we provided including confirming the debug.log file generated by WP_DEBUG doesn’t show anything, checking the IPN history page on PayPal, confirming what the last step in the testing process is (do you get to a Charitable receipt page, for example), and finally… if it comes down to it, see if another plugin can do a test PayPal payment.
I’ll let you know if there are any further suggestions from our team.
Thanks!
@krutiw29 Thanks for your response. Sadly we are running out of things to try here. The PHP Warning I don’t think is involved – if that is the only error you get throughout the entire donation/test. The fact that you cleared cache for tester to have results tells us that cache might still be involved (I believe earlier we suggested turning off any and all cache, even hosting side while trying to confirm payments).
Can you confirm that your tests are coming up as paid in Charitable? Or is it test and live Paypal payments?
Charitable processes that webhook/IPN and sets the donation to complete. If the webhook/IPN is unable to reach your site the donation will remain “Pending”. Sometimes this happens when a donor gives up during the payment (so PayPal does not communicate it to your website so we keep the donation pending). So can you confirm ALL the steps you are doing for your testing? What’s the last step in the process?
Because Charitable processes the donation when Paypal sends the webhook/IPN back then either (1) PayPal isn’t sending the notification or it’s getting blocked or not arriving correctly (cache, firewall) or (2) Charitable for some reason isn’t recognizing the communication. Sounds like as far as PayPal is concerned it’s sending something and getting a 200 (but this doesn’t mean it’s reliable).
I would double check with your hosting company to check for any network issues that might prevent communication between your server and PayPal’s servers. Be aware that tests might not always reflect real-time payment processing. Test transactions might remain in a pending state for longer than expected.
The next step would be to locate another WordPress plugin to test PayPal test payments (such as EDD). If it works, then it leans more toward Charitable. If it doesn’t, leans more towards something not related to Charitable.
I’ll let you know if there are any further suggestions from our team.
@krutiw29 Thanks for the follow up.
- That Paypal notification message does hint that SOMETHING is wrong but hard to determine what. Going to suggest the following in the hope we can narrow down things a bit:
- If you don’t see a debug file generated where it should be, reach out to your hosting company to make sure they don’t have any settings that might be overriding the generation of the log file or where it’s located. They should be able to confirm this for you, since it’s part of standard WordPress site debugging/support.
- Go to PayPal to confirm again the IPN. Go to “Profile and Settings” and select “My selling tools”. From there find “Instant Payment Notifications” and click the “Update” link. Make sure you have a single IPN that matches your site URL exactly including the https (a secure SSL website is required for live payments).
- Ensure that there isn’t any odd or custom rules setup in your .htaccess file on your WordPress install.
- If you have truly deactivated ALL plugins BUT Charitable ask your host if you have any caching on their end to turn off (ask at the same time perhaps as the error logging above). The fact that you get “Invalid Request” when you tried the URL is actually a good thing – it means that the webhook on your end where Charitable receives webhook from Paypal is working (it’s invalid because you are going there directly and aren’t PayPal – in fact this url is likely the one that should be matching in your IPN).
- Try accessing the IPN History (this is your regular Paypal account, not your developer one – they have more information on their site about this) and see if you can locate the successful payment you mentioned, and if there was a “200” success code. Even if there was, it doesn’t mean Charitable didn’t get the notification but at least that’s a step to confirm. And if you can make sure there’s no caching, and with the error logging functional, and all plugins but Charitable deactivated, and on a default theme – you should be able to “resend selected” once you check off the payment, and then determine if an error is logged or if Charitable acknowledges the hook.
- This reply was modified 2 years, 3 months ago by WPCharitable.
@cameronbq Thanks for reaching out and thank you for making us aware of this. An adjustment in the CSS in the next version of Charitable (that version is tentatively 1.8.1.5) should resolve this issue. After that release if you continue to have issues please reach out to us.
@jozusakunn Thanks for reaching out. Because you are a licensed pro user, feel free to reach out to us via the support meant for paid users (especially since you may need to share sensitive information). I’m going to close this ticket here and I’ll let the team know to look out for your support request. Thanks!
Hi @daridavis.
So the tester tool went from “no notification received” (your first message) to “successful”? And this was in test mode (making sure Charitable’s “test” checkbox was checked on the gateway page in Charitable settings)?
Focusing on the other tips we shared, just to confirm you (1) enabled debugging (2) deactivated all non-Charitable plugins including Elementor (3) switched to a default theme… and after all of these the test payments didn’t change from “pending”?What happens when you attempt to visit this link in your site? https://yourwebsite.com/charitable-listener/paypal
If the debugging was on, then you or your hosting company could example the debug.log to see if there are any errors or warnings specific to Charitable in there. Contacting your host to make sure there isn’t anything in place that would prevent Paypal from contacting your server. I would try maybe to confirm that another Paypal related plugin works on your server (like EDD) to make sure it’s not a communication issue. Also double check the suggestions on our doc page (the ones not related to the IPN test plugin) and your Paypal settings.
We do offer support in these forums for our lite plugin, so you don’t need a premium subscription for support. Such subscriptions cover more secure and advanced technical support and also include the addons in the paid plans. I hope this helps.