Price of iphone in-app purchase, server-side

Viewed 4300

How can a server determine the amount of an iphone in-app purchase ?

The server receives the purchase's receipt sent by the app and uses this to validate it.

This returns some informations like a transaction_id, product_id, etc; but no amount or user details.

Since the amount depends on the currency and the user's country, how can I get the amount of the purchase on the server ?

2 Answers

Now it is possible to set a different price for each country so the mapping of in app purchase to a pricing tier can be cumbersome.

You can get the price as the user see it in the UI and the price locale from the client and then send that information to your server.

For renewals - You can see renewals by verifying the receipt data on the server side and use the price sent by the client in the first transaction.

Related