Hello I've problem with transaction payload. If I receive POST App Store notification v2 to my server. In the decoded transaction body is missing appAccountToken field. In the iOS app I've just set token like this:
let result = try await product.purchase(options: [
.appAccountToken(UUID.encodeIntAsUUID(Auth.shared.user.idUser)),
.simulatesAskToBuyInSandbox(true)
])
Where is the problem?
Post
Replies
Boosts
Views
Activity
Hello I'm working on IAP with StoreKit2. In app is everything finished and OK, so I've started an implementation of server side. I'm using App Store Server Notifications API. If user subscribe something everything looks fine and I receive a notification with signedPayload body https://developer.apple.com/documentation/appstoreservernotifications/signedpayload.
Payload contains field like transactionId, originalTransactioId... but there is missing some information about user. I have to pair "subscribed" transactions with user to know what he bought, because I have also web version of iOS app so I need to pair stuff paid by IAP with web version. For example if I buy premium version of account by IAP, so I want premium version of account on the web.
Do you have any idea how to solve this problem?