Tencent Holdings Ltd. has struck a deal with Apple Inc. that will see the iPhone maker handle payments and take a 15% cut of purchases in WeChat mini games and apps, resolving a high-profile dispute that’s dogged the world’s largest smartphone arena.

