Closed AwoyoToyin closed 7 years ago
@AwoyoToyin Very well thought.
@ibrahimlawal Happy you think so too.
Milestones
sales_order_place_after
event and remove the Profibro\Paystack\Observer\AfterOrderObserver
altogether.order_status
field in the system.xml for setting a default new order status; in this case "Pending Payment". DONE
payment_verify_after
that gets dispatched after the payment is verified successfully. DONE
Profibro\Paystack\Observer\AfterPaymentVerifyObserver
that subscribes to the custom event. This observer simply gets the last real order and sets the status to "Processing". DONE
I have begun work on this and the only issue I have is:
It seems the new order_status
field in the system.xml for setting a default new order status is essentially useless has magento ignores it and defaults to "Pending" anyways.
Solution:
profibro_paystack
payment code before setting the status to "Pending Payment".What do you think?
@AwoyoToyin Awesome, looking forward to testing this.
@ibrahimlawal Great! The proposed solution is ready and you can go ahead with the testing whenever you can. What do you want me to do? Create a pull request?
If it's on a staging server, that'd be great
I'll see what I can do about that.
But yea, a PR is great if that's a long thing 😃
I do have it running on a client's server (which hasn't gone live yet) right now just, not exactly my staging environment. Think a PR would have to do for now. Probably have my own staging environment ready next time.
@ibrahimlawal I believe we can mark this as closed now, right?
The issue
Solution
If payment is successful:
@ibrahimlawal please let me know what's your take on this