Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic methods should not be called staticaly #159

Open
AlterwebStudio opened this issue Oct 26, 2018 · 0 comments
Open

Dynamic methods should not be called staticaly #159

AlterwebStudio opened this issue Oct 26, 2018 · 0 comments

Comments

@AlterwebStudio
Copy link

In the example methods, PaypalPayment methods are called staticaly but methods are defined as dynamic in the class. I modified paywithCreditCard() and paywithPaypal() methods to create new instance of PayPaylPayment class first, then I made methods to call dynamicaly. Anyway I don't think it's the best way how to solve it (at least beacase it has its own ServiceProvider called automaticaly by laravel service providers in boostrap). Any suggestions how to solve this correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant