Namaste LMS using Stripe

  • Unknown's avatar

    I am using Namaste to create a course on WordPress.com but keep encountering a fatal error overtime I try to enable the Stripe payments.

    “PHP Fatal error: Cannot declare class StripeStripe, because the name is already in use.”

    Based on my research in other forum topics, I believe this is because I am already using Stripe for WooCommerce. This means the Stripe class name exists in both plugins and we can’t use two classes with the same name in same module/directory.

    I believe if I customized the Namaste plugin by replacing the class name and all its references in the plugin from Stripe to MyStripe, it would make the class unique and then I could use both classes without any conflict. However, I do not feel confident about editing the plugin code.

    Is there a work around or fix for this issue (other than purchasing the WooCommerce integration)? Am I totally off about what could be wrong?

    The blog I need help with is: (visible only to logged in users)

  • Hi there, were you able to find help with this? I’m sorry we missed it earlier — these forums are for the free sites on our servers, and of course most community members here aren’t able to add plugins. Honestly as staff for free sites, this question isn’t in my league either.

    I believe if I customized the Namaste plugin by replacing the class name and all its references in the plugin from Stripe to MyStripe, it would make the class unique and then I could use both classes without any conflict. However, I do not feel confident about editing the plugin code.

    This sounds right, but the problem is if you update that plugin, everything will be changed back. So it’s not a great long term solution, unless they’re willing to provide some kind of functionality snippet that will take care of it long term for you. You can try checking in with Namaste to be sure.

    Then I’d recommend reaching out here first if you haven’t already:
    https://wordpress.com/help/contact

    That’s direct support for your business plan.

    And, WooCommerce sales may also be able to make a recommendation since you’re already using the Stripe integration. You can find them here:
    https://woocommerce.com/contact-us/#sales-form

    Hoping this helps!

  • The topic ‘Namaste LMS using Stripe’ is closed to new replies.