Skip to content

Instantly share code, notes, and snippets.

@rfistman
Last active March 25, 2022 19:20
Show Gist options
  • Save rfistman/7745560 to your computer and use it in GitHub Desktop.
Save rfistman/7745560 to your computer and use it in GitHub Desktop.
Test production IAP receipts with curl
# IAP
curl -s -d "{ \"receipt-data\" : \"$(base64 receipt)\" }" https://buy.itunes.apple.com/verifyReceipt | python -mjson.tool
# autorenewing subscription
curl -s -d "{ \"password\" : \"shared-secret\", \"receipt-data\" : \"$(base64 receipt)\" }" https://buy.itunes.apple.com/verifyReceipt | python -mjson.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment