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

PartialSuccess Error Handling, PFW-636 #1458

Merged
merged 8 commits into from
Jun 12, 2020
Merged

PartialSuccess Error Handling, PFW-636 #1458

merged 8 commits into from
Jun 12, 2020

Conversation

kcppdevelopers
Copy link
Contributor

No description provided.

Copy link
Collaborator

@deepakmaurya deepakmaurya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the comment and resolve the issue, so that we can test it.

@@ -92,4 +92,10 @@ public function ec_is_response_successwithwarning($paypal_response) {
return true;
}
}

public function ec_is_response_partialsuccess($paypal_response) {
if (!empty($paypal_response['ACK']) && strtoupper($paypal_response['ACK']) == 'PartialSuccess') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kcppdevelopers I think this condition will never turn to true, because you ae comparing a upper case string with a different string. either convert PartialSuccess as full string. or make sure convert everything into small case and partialsuccess as well to compare properly.

@deepakmaurya deepakmaurya merged commit a87a82b into release Jun 12, 2020
@deepakmaurya deepakmaurya deleted the PFW-636 branch June 12, 2020 11:05
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

Successfully merging this pull request may close these issues.

None yet

2 participants