-
Notifications
You must be signed in to change notification settings - Fork 54
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
Backend order with Payment link is set to Pending Payment instead of Pending (or custom status) #825
Comments
Thank you for providing such a detailed issue description. I’ve scheduled some time with the team tomorrow to conduct an in-depth review of your issue and will get back to you afterward. I appreciate your patience! |
hi @Frank-Magmodules thanks! |
Good news! We’ve addressed the issue you described with a bug fix, which will be included in the upcoming release, likely next week, once we complete our testing program. I’ll keep this issue open for now and will update you here once the new version is officially released. Thank you for bringing this to our attention and for your patience! |
Hi @Frank-Magmodules thanks! No problem, you're welcome. ^ Ingmar |
The moment has arrived—we’ve addressed this in our latest release! 🎉 I’ll close this issue for now, but feel free to reopen or comment if needed. |
Describe the bug
When a store admin creates a backend order for a customer and selects Mollie Paylink as the payment option (with or without specifying a particular payment method), the order status is set to "Pending Payment". If the order lifetime cron is set to a lower number of hours (e.g., the default 8 hours or shorter), the order gets canceled after the specified time.
The Mollie module allows configuring both the order lifetime and the desired order status. However, while you can select any "Pending" (new) status/state, "Pending Payment" is not listed.
Consequently, "Pending Payment" orders are automatically canceled by Magento after the cron job runs, unlike other "Pending"(new) statuses which remain unaffected.
When looking at the code in Model/Methods/Paymentlink.php it seems that indeed it set to Pending Payment
$stateObject->setState(Order::STATE_PENDING_PAYMENT);
We tested using a patch and are able to set the correct order status directly in the code, and there is no 3rd party cause that changes it afterwards. The order stays on our Pending state until paid and is not cancelled.
Used versions
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Actual behavior
Orders set to Pending Payment are canceled after passing the pending payment order lifetime after the cron job runs, regardless of the configured lifetime in the Mollie module. This prevents customers from completing their payments using the provided link.
Screenshots
Order status set to Pending Payment after placing via Mollie Paylink.
Cron settings for order lifetime.
Order status configuration in Mollie module.
Order should get canceled only after the configured cron interval.
Additional context
The text was updated successfully, but these errors were encountered: