Hi, thank you for suggestion and sharing your code. I have submitted a message to the developers to further investigate your request.
Kind regards
I have added a new filter for this. Upgrade the plugin to the new version then you can use the following filter:
paypal_donations_merchant_email
If you need example code then check the following page:
https://www.tipsandtricks-hq.com/paypal-donations-widgets-plugin
I forgot to mention, you can also use your secure paypal merchant ID in the paypal email field (it works the same way except it uses your merchant ID).
Thread Starter
George
(@quantum_leap)
Brilliant, paypal merchant ID worked as expected!
Thanks for your fast reply and help!
Thread Starter
George
(@quantum_leap)
Hi, I hope you don’t mind reopening this ticket. Basically the merchant ID works if you have only one email connected to an account. Currently I would like to accept donations to the same account but from a different email address so I cannot use the merhcant ID this time(because the original merchant ID email would be visible to the Paypal checkout page instead).
I tried adding the filter as you suggested to encode the email”
function override_merchant_email( $pp_email ) {
$pp_email = ae_encode_emails( $pp_email );
return $pp_email;
}
add_filter('paypal_donations_merchant_email', 'override_merchant_email');
but all that does is it encodes the emails in hex characters befote the plugin output thus rendering the page with errors (and no footer).
Basically, as I said in the first post I would like to encode the email after it has been entered in the plugin admin page. Would that be possible?
Thread Starter
George
(@quantum_leap)
It’s ok, I made it work! All I had to do is register the eae_encode_emails() function to it.
add_filter('paypal_donations_merchant_email', 'eae_encode_emails');
Cheers!