I am building a plugin that uses Stripe for the payment processing. I have included Stripe’s PHP library into my plugin and everything works great. But what if someone else makes a plugin that also uses Stripe … or worse, an older version of Stripe that isn’t compatible with mine? Sounds like there could be conflicts if someone had both of our plugins activated at the same time.
Do I need to namespace Stripe’s classes? Is that advisable? I imagine that being a maintenance nightmare if I ever want to upgrade to a newer version of Stripe’s library.
I’m totally OK doing that, but I want to make sure I’m following best practices here.
Thanks!
Tony