-
Notifications
You must be signed in to change notification settings - Fork 48
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
Update checksum models #102
Conversation
*/ | ||
public function validateResponse($response) | ||
{ | ||
$returnValue = false; | ||
if ($response['header']['status'] == 200) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change is not backwards compatible, the new version of the wrapper should be 4.0.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is. It won't break existing implementations. It removed warnings if index isn't set and extends the range. Maybe I overlooked something, but what makes it not backwards compatible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of the handling implemented on the merchants side. A response != 20000 was nerver valid until now. Valid could be implement as success, which is not the case any more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. 4.0.0 it is.
4.0.0 Added shipping and billing address Added shopping cart (items) Added PayPal functionality Possible BC break in ResponseHandler.php
Wrapper updates due to the latest API updates.