My app listens for transactions using:
for await result in Transaction.updates {
// check verification and process Transaction
}
The result coming from these updates has a jwsRepresentation
field, which when decoded server-side reveals the price the user paid, discounted in the case of a custom offer code. How can I get this value without a server roundtrip? Transaction
does not have price
field, and the subscription product's price does not seem to include custom offer code pricing.
Transaction has a price property, see here: https://developer.apple.com/documentation/storekit/transaction/4312704-price