Apple App Store Professional Vocabulary: App Store Receipts

Apple App Store Professional Vocabulary: App Store Receipts

Your server can entry the verifyReceipt endpoint to validate app and in-app transaction receipts. Submit a receipt to the App Retailer to obtain a JSON response containing the app info and in-app buy particulars in a variety of fields that make up the receipt. Every subject or mixture of fields gives perception that you should utilize to ship service and content material to the person as you outline.

We’re all happy to assume that in order to grow a successful mobile game (or app) you need:

Receipts for auto-renewable subscriptions can develop over time because the renewal transactions keep within the receipt ceaselessly. To optimize efficiency, the App Retailer could truncate sandbox receipts to take away outdated transactions. When validating receipts for transactions made within the sandbox atmosphere, think about creating new check accounts as a substitute of reusing outdated accounts to check subscription purchases.

Receipt Verification Request

verifyReceipt-Ship a receipt to the App Retailer for verification.(https://purchase.itunes.apple.com/verifyReceipt)

HTTP Physique

requestBody    The JSON contents submitted with the request.

Content material-Sort: software/json

Response Codes:

200:   OK
responseBody:   Content material-Sort: software/json

Dialogue

Validating with the App Retailer requires a safe connection between your app and your server, and code in your server to validate the receipt with the App Retailer. Submit an HTTP POST request with the contents detailed in requestBody utilizing the verifyReceipt endpoint to confirm receipts with the App Retailer. Use the receipt fields within the responseBody to validate app and in-app purchases.

This image has an empty alt attribute; its file name is 02-2.png

Alternate URL for Sandbox Testing

The sandbox URL for verifying receipts is:

https://sandbox.itunes.apple.com/verifyReceipt

As a finest follow, all the time name the manufacturing URL for verifyReceipt first, and proceed to confirm with the sandbox URL should you obtain a 21007 standing code.

Resourcing from: App Store Weekly News: Summary of Apple Store and Android Store Hotspots