PayPal Holdings Inc on Wednesday reported a second-quarter profit that beat analysts’ estimates, but its forecast for third-quarter revenue came up short.