I need two Invoice payment gateways … one for payment by check with an invoice, and the second for scholarship applications with an invoice. Just duplicating the invoice folder gives me this error:
Fatal error: Cannot redeclare event_espresso_invoice_payment_settings() (previously declared in /home/chesterbowl/chesterbowl.org/wp-content/plugins/event-espresso/gateways/invoice/settings.php:4) in /home/chesterbowl/chesterbowl.org/wp-content/plugins/event-espresso/gateways/invoice2/settings.php on line 81
How can I implement the second Invoice gateway without running into this conflict? Thanks.
You’d need to rename the the copied gateway’s functions. PHP doesn’t allow declaring the same function twice. Is there a PHP developer you can team up with to help with this project?
The support post ‘Second Invoice Payment Gateway’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.