Posted: December 16, 2018 at 11:51 pm
|
Hello, I was trying to integrate a new payment gateway in the event espresso. However, after adding the files for a New Payment gateway offsite, i was trying to rename the Payment Gateway. I was following this Link. Somewhat it is not working. Would you please take a look. I have already followed the process. You can see my updates from here. |
Hi there, It looks like you have saved the entire GitHub page, which contains the code for So this page: https://congressia.com/home/wp-content/plugins/new-payment-method/renamer.php although named Go here: https://github.com/eventespresso/eea-renamer Click on the green ‘Clone or download’ button and then ‘Download ZIP’ – http://take.ms/swBz4 You’ll download a zip file containing a The file you currently have will never work how you are expecting as it’s not a PHP file (it contains the PHP code as a preview but that’s all, you can’t use it for server-side processing as is). |
|
|
Thanks for your answer. Seems like the link is fixed here. Then what next? I am a bit confused. Would you please just give me a heads up? |
The instructions within that file tell you the next step, you need to pass ‘replace’ get parameter of your new payment method with the first letter of each word capitalized and spaces replaced with underscores, for as an example:
Would run the renamer and change the files to use that string. As your are using a payment method mock add-on, you’ll likely need to use:
The renamer just runs through and uses the string you provided to build out the skeleton of the payment method using that string, you’ll still need to add all of your custom code for the payment method to work. |
|
|
Hi, I followed the process according to your instructions. Now, the thing is we cant access the Payment Methods Tab from the event espresso Menu. Please check the screenshot attached. |
Hi, 1) Please consider doing your development on a development server. A live/production server is not suited for doing development. 2) After you’ve set up your development environment, you can edit the wp-config.php file and set WP_DEBUG to true. This will allow for errors to display instead of a blank screen. 3) If no PHP errors are displayed with WP_DEBUG activated on that payment settings screen, you can check the browser’s console for JavaScript errors. |
|
The support post ‘The renamer file is not working’ 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.