currently i'm getting all orders id's from some code on my success.phtml page.
What about if orders get canceled. How to i only pass information along on canceled or declined and would they still hit the success.phtml page... maybe if it was declined after the fact.... ???
Obviously the code above gets the id but always (forces) to pass a declined status.
This is part of a rest api but i'm only looking to send orders that have been declined.
I only want to pass the order id's that are cancelled. would the above work as the second part?