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

IPN Spam due to incorrect transaction handling #44

Open
0xVavaldi opened this issue Nov 28, 2021 · 0 comments
Open

IPN Spam due to incorrect transaction handling #44

0xVavaldi opened this issue Nov 28, 2021 · 0 comments

Comments

@0xVavaldi
Copy link
Contributor

IPN keeps spamming status 0 updates because it only accepts status 2 and 100.
throw new IpnIncompleteException($request['status_text'], $ipn); results in the IPN thinking it wasn't received correctly when in fact it was.

Example fix:

if ($is_complete) {
    return $ipn;
} else {
    throw new IpnIncompleteException($request['status_text'], $ipn);
}

Replaced by:
return $ipn;

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