Posted: December 30, 2017 at 12:24 pm
I just upgraded to EE3, version 126.96.36.199.p. My site uses both the E-xact and the PayPal gateways, but for some reason after the upgrade, the “Current Button Image” which is set in the respective “Payment Settings” is not being displayed, and instead, the default images for both gateways are being show on the Payment Options screen.
I’ve been carefully looking for changes to gateway and theme files but can not figure out what is causing this. Can anyone point me in the right direction?
You mentioned you just updated to EE3 and have 188.8.131.52.p, however, the latest version is v184.108.40.206.p so could you please confirm the version number you are using? You can check within Dashboard -> Plugins.
If using an older version and you’ve just updated now is there a reason you’ve updated to an older version?
If you go to Event Espresso -> Payment settings
Are the E-xact and PayPal payment gateways listed at the top of the list or just sorted alphabetically? Or if you use FTP and check within /wp-content/uploads/espresso/gateways/ do you have those 2 gateways there? (Meaning they are custom gateways)
Thank you for your reply and apologies for my typo – I have upgraded to EE3 v220.127.116.11.p.
The gateways are both listed at the top of the Payment Settings page and they exist in the /wp-content/uploads/espresso/gateways folder.
I have used DiffMerge to compare my custom versions with the versions in /wp-content/plugins/event-espresso/gateways and I see no differences related to the button image loaded via gateway_display.php.
Can you let me know what other file(s) impact how the payment gateway button image is loaded?
PayPal it’s the
For E-xact is
Noth of which pull the settings for the gateway into an array and should have any custom values stored in against the ‘button_url’ key.
That value is then passed to
If you open the full URL for your custom image in the browser itself, does it open the image?
Thank you. Yes, the custom button urls are loading fine when entered directly in the browser. For now I’ve hard-coded the button urls in my /wp-content/uploads/espresso/gateways/ versions of the paypal_vars.php and exact_vars.php files.
I hadn’t made any changes to those files previously and can’t see any other reason why they aren’t being loaded as per the Payment Settings page.
I don’t mind leaving them hard-coded, but if you have any suggestions for what else I can check, please let me know. (e.g. I did disable and re-enable those gateways without effect.)
The first thing I would do is confirm that ‘button_url’ is actually being set.
In your custom gateway (doesn’t matter which one but in my examples I’ll use PayPal), in
Below that add:
Wrap it in a cap check for manage_options if you only want to display it to admins:
Confirm that ‘button_url’ is set to the value you saved in the settings page when you load the gateway.
The support post ‘Payment gateways no longer showing custom buttons after EE3 upgrade’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.