• Resolved Barton

    (@thebarton)


    Is it possible to have the Stripe class namespaced so it doesn’t fight with another plugin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @thebarton

    Are you referring to a particular class or all of the classes in the plugin? The concern is that by changing the classnames, there will be custom code in the wild which would break.

    Which plugin are you seeing a conflict with?

    Kind Regards

    Thread Starter Barton

    (@thebarton)

    For my use case, it’s the Stripe class.

    namespace Stripe -> namespace YourNamespace\Stripe, and etc. for the other classes.

    You’re using composer so it should be doable to prefix a namespace.

    I have a different plugin for the forms that uses a Stripe class. I need to run both.

    I understand the concern about custom code. Just trying to get one of the plugins to make an update.

    ??

    Plugin Author Payment Plugins

    (@mrclayton)

    I have a different plugin for the forms that uses a Stripe class. I need to run both.

    It sounds like that plugin is not using composer, but instead direct loading classes. If that’s the case, then it would cause a conflict. Composer is good because it first checks if the class has been declared. If it has, then it won’t attempt to load the class again.

    I would ask your form plugin devs if they’re just direct loading the classes and if so, that’s the issue.

    Kind Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stripe class namespaced?’ is closed to new replies.