You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By having all methods static, and using self, the possibility of extending functionality / replacing small parts disappears.
eg.
If I want to replace the following verifyResponse method to act differently, I can't, as the call will always be called on the self context (in the class used).
By having all methods static, and using self, the possibility of extending functionality / replacing small parts disappears.
eg.
If I want to replace the following verifyResponse method to act differently, I can't, as the call will always be called on the self context (in the class used).
The self keyword can be replaces with the static keyword, which will use the static context of the object.
In this way, I can create a new class MyRefund which extends the refund functionality, but on verify response does something else.
The text was updated successfully, but these errors were encountered: