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, 7 months ago by
jaspair.
-
AuthorPosts
-
June 29, 2020 at 3:24 am #15604
jaspair
MemberWe 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 #80751wzp
ModeratorWhat 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 #80752jaspair
MemberThank 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 #80753wzp
ModeratorThere 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:
- You convince the GiveWP developer to rename their PHP class.
- You request us to give you a custom work quote to rename our PHP class.
https://support.tipsandtricks-hq.com/need-custom-work-done
- 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 #80754jaspair
MemberThank you for your answer! I requested a custom work quote.
- You convince the GiveWP developer to rename their PHP class.
-
AuthorPosts
- You must be logged in to reply to this topic.