Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

eStore Payment Gateway Bundle – Cannot declare class StripeStripe

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Addon Related › eStore Payment Gateway Bundle – Cannot declare class StripeStripe

  • This topic has 4 replies, 2 voices, and was last updated 4 years, 10 months ago by jaspair.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 29, 2020 at 3:24 am #15604
    jaspair
    Member

    We started using another plugin called GiveWP which also supports Stripe.

    Since we enabled this plugin Stripe payments trough the Payment Gateway Bundle are not working anymore. We see the following error message in the PHP logging:

    PHP Fatal error: Cannot declare class StripeStripe, because the name is already in use in /home4/username/public_html/wp-content/plugins/wp-payment-gateway/lib/stripe/Stripe/lib/Stripe.php on line 10

    June 29, 2020 at 5:52 pm #80751
    wzp
    Moderator

    What it means, is that GiveWP is using PHP classes that have the same name as one used by the Payment Gateway Bundle; which may or may not be either 2 copies of the same PHP class, or 2 different classes that just happen to use the same name.

    Question… why aren’t you using the donation buttons in eStore, other than the fact that only PayPal is supported?

    June 30, 2020 at 1:51 am #80752
    jaspair
    Member

    Thank you for your reply!

    Because GiveWP is dedicated for donations it gives us more options such as the option for a donor to select if they want to make a one-time or monthly donation, select an amount or input a custom amount, run campaigns with target amounts, let users comment etc. We’re not using everything yet but planning to do so in the future.

    And a large amount of donations are made with credit card and we found PayPal less convenient for credit card payments.

    Is there a way to solve this problem?

    June 30, 2020 at 4:07 pm #80753
    wzp
    Moderator

    There is only one way, to fix the issue; and three ways to implement the fix.

    Fixing the problem requires the PHP class naming conflict to be resolved. Either eStore, or GiveWP needs to use a different name for the PHP class in question.

    Implementation of the fix can be done in 1 of 3 ways:

    1. You convince the GiveWP developer to rename their PHP class.

       

    2. You request us to give you a custom work quote to rename our PHP class.

      https://support.tipsandtricks-hq.com/need-custom-work-done

       

    3. You use your own PHP programmer to determine which plugin is easier to modify, and have them rename the PHP class.

       

    Alternatively, you can use the existing features of eStore to recreate the same functionality that you have with GiveWP. Based on the explanation you gave about GiveWP, everything described can be done; given the proper amount of thought and planning.

    July 1, 2020 at 2:37 am #80754
    jaspair
    Member

    Thank you for your answer! I requested a custom work quote.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ