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

Update echeck status when rejected by Paypal #11832

Merged
merged 5 commits into from
Feb 3, 2025

Conversation

notbakaneko
Copy link
Collaborator

There are a bunch of Orders that are in the eCheck pending state when the eChecks have been rejected already.
This adds extra handling to the IPN to mark the eCheck as rejected (payment_status=Denied payment_type=echeck).

@notbakaneko notbakaneko self-assigned this Jan 31, 2025
Comment on lines 230 to 232
if ($this->params['payment_type'] === 'echeck') {
$order->update(['tracking_code' => Order::ECHECK_DENIED]);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't this be in paypal processor class? or does it actually apply for all providers?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

helps if I'm editing the right file 🤡

@nanaya nanaya enabled auto-merge February 3, 2025 11:06
@nanaya nanaya merged commit 6340009 into ppy:master Feb 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants