Daily iOS
Security

In-app purchase flow

In a mobile game, what does an in-app purchase go through from the user's tap to the item being granted on the server?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

With StoreKit 2 you look up the Product and call purchase(), the App Store takes the payment and returns a signed Transaction (JWS), the client sends it to the server, and only after the server verifies it and confirms the grant does the app call finish().

Share a question