Pan out applies to any situation working out in the end. "Hopefully after all this trouble, everything will pan out" Pay off can be financial or not. In either case, the end result will make everything worth the time, effort, etc. invested (financial or otherwise). "All you sacrifice will pay off when your son becomes a doctor." This can mean your efforts were worthwhile, or she will benefit financially.