Global Payments Inc. is transforming into a high-margin, software-focused commerce enabler, divesting lower-margin units and boosting profitability, yet the market undervalues these improvements.