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

add some logging for errors during paypal response validation #640

Merged
merged 1 commit into from
May 16, 2021

Conversation

seansan
Copy link
Contributor

@seansan seansan commented Mar 29, 2019

@@ -1164,6 +1164,7 @@ protected function _validateResponse($method, $response)
if (isset($this->_requiredResponseParams[$method])) {
foreach ($this->_requiredResponseParams[$method] as $param) {
if (!isset($response[$param])) {
Mage::log("Expected PayPal field not found in NVP Response: $param");
Copy link
Contributor

Choose a reason for hiding this comment

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

Please log more context, right now the log is not really useful. You see that sth is wrong but has no idea which order was it and which paypal method caused the issue.

Copy link
Contributor

Choose a reason for hiding this comment

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

do we have any order identifying data available in this context?

@seansan
Copy link
Contributor Author

seansan commented Mar 29, 2019 via email

@sreichel sreichel added the Component: PayPal Relates to Mage_Paypal label Jun 1, 2020
@Flyingmana Flyingmana merged commit e055833 into OpenMage:1.9.4.x May 16, 2021
@Flyingmana Flyingmana changed the title Suggestion to add some logging if in error add some logging for errors during paypal response validation Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: PayPal Relates to Mage_Paypal enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants