Title: Duplicate Plugin
Last modified: February 11, 2021

---

# Duplicate Plugin

 *  Resolved [Johnny](https://wordpress.org/support/users/johnexposureninja/)
 * (@johnexposureninja)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/duplicate-plugin-10/)
 * Hello,
 * I’m looking to have two instances of this plugin installed so the payment gateway
   can have multiple MerchantIDs / API password / payment page URL.
 * Went through the support and saw this was possible – [https://wordpress.org/support/topic/two-merchant-ids/](https://wordpress.org/support/topic/two-merchant-ids/)
   I have successfully prevented all PHP errors but the “new” payment gateway doesn’t
   show on the payment gateways page.
 * Was wondering if you could help?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Ali Basheer](https://wordpress.org/support/users/alibasheer/)
 * (@alibasheer)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/duplicate-plugin-10/#post-14038086)
 * Hi [@johnexposureninja](https://wordpress.org/support/users/johnexposureninja/),
 * I believe you need to change as well some more code, you need to rename one of
   the payment gateways names so they both appear.
 * Best,
    Ali
 *  Thread Starter [Johnny](https://wordpress.org/support/users/johnexposureninja/)
 * (@johnexposureninja)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/duplicate-plugin-10/#post-14038171)
 * Hi [@alibasheer](https://wordpress.org/support/users/alibasheer/)
 * Thanks for the reply.
 * I actually made lots of progress after my earlier message. I’ve been able to 
   get both gateways to show and even completed payments.
 * However when both instances are active, the duplicate gateway throws this error–
   [https://prnt.sc/z4pi3x](https://prnt.sc/z4pi3x)
 * This error doesn’t show when the original gateway plugin is active.
 * Here’s my code – [https://pastebin.com/DRtYP2Ww](https://pastebin.com/DRtYP2Ww)
 * PS: I understand that this may be outside scope of your support. I’m willing 
   to suggest paying for your services to my superiors if needed.
 * Thanks.
 *  Thread Starter [Johnny](https://wordpress.org/support/users/johnexposureninja/)
 * (@johnexposureninja)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/duplicate-plugin-10/#post-14038177)
 * Meant to say:
 * “This error doesn’t show when the original gateway plugin is deactivated”.
 *  Plugin Author [Ali Basheer](https://wordpress.org/support/users/alibasheer/)
 * (@alibasheer)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/duplicate-plugin-10/#post-14038341)
 * I see you did great progress [@johnexposureninja](https://wordpress.org/support/users/johnexposureninja/)!
 * Yeah this is out of the support scope and at the moment I am not able to do customization/
   freelance work.
 * I believe you will reach the fix as it looks so close.
 * Best,
    Ali

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Duplicate Plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-mpgs_fafafa.svg)
 * [WooCommerce MPGS](https://wordpress.org/plugins/woo-mpgs/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-mpgs/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-mpgs/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-mpgs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-mpgs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-mpgs/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ali Basheer](https://wordpress.org/support/users/alibasheer/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/duplicate-plugin-10/#post-14038341)
 * Status: resolved