Cannot declare class Stripe\Stripe (payment conflict)
-
Hello,
I have a website that has two different membership modes: one through Woocommerce that uses stripe checkout through this plugin, and another one through the Armember membership plugin which also uses stripe for payments.
The second one uses stripe’s webhooks which are now failing and point to a
There has been a critical error on your websiteresponse, which as it turns out is caused by the following error:Cannot declare class Stripe\Stripe, because the name is already in useIt appears that both armember and this plugin declare stripe with the same name, which causes the error to happen. Is there a way to solve this? It appears that many are facing the same issue (not with this plugin in particular, but with several I’ve seen also using stripe). Possible solutions I found were to check if another plugin has already declared the class before creating it again, or renaming the class to something else (eg. Stripe => MyStripe). If such functionality can’t be implemented, can you tell me how to safely update the class name on my own to avoid the conflict?
Thanks.
The topic ‘Cannot declare class Stripe\Stripe (payment conflict)’ is closed to new replies.