Support

Home Forums Event Espresso Premium Second Invoice Payment Gateway

Second Invoice Payment Gateway

Posted: January 20, 2017 at 6:50 am

Viewing 2 reply threads


Chester Bowl

January 20, 2017 at 6:50 am

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.


Josh

  • Support Staff

January 20, 2017 at 7:27 am

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?


Chester Bowl

January 20, 2017 at 8:53 am

That did the trick. Thanks!

Viewing 2 reply threads

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.

Event Espresso