Why is state not transitioning to “payment_pending” for orders cancelled at gateway?

岁酱吖の 提交于 2019-12-24 03:24:56

问题


I am using Magento community ver1.6.1.0.
I found this state diagram on Magento wiki http://www.magentocommerce.com/wiki/2_-_magento_concepts_and_architecture/order_management

My problem is the state switching as shown by bold red lines.
When a user goes away from my (merchant) site, the state is new (status=pending). But if the customer does not completes payment (at payment gateway), the status is still "pending", whereas it should be "pending_payment". In "pending_payment" state, staff will call the customer to ask for any trouble.

So my question is, why are state transitioning as per this diagram? Or am I missing something? How do I solve this? because it is hard to distinguish between COD "pending" and such "aborted" orders.

Thanks!


回答1:


I added a cron job to change state from "pending" to "pending payment". It does the job, and can be configured to take care that new orders are not transitioned. Also a simple mail function can be added to notify the staff, when this transition is made.

The complete answer (by me) is here : https://stackoverflow.com/a/11131787/558094



来源:https://stackoverflow.com/questions/11078751/why-is-state-not-transitioning-to-payment-pending-for-orders-cancelled-at-gate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!