Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Current receipt invalid or mismatched ds person id

I am trying to test In-App purchases for MacOS. After entering the test user credentials, the App Store complains: "Current receipt invalid or mismatched ds person id." and the purchase fails.

like image 250
Nathan H Avatar asked Jul 18 '11 16:07

Nathan H


1 Answers

Some of the many things I tried to get around this problem.


Getting App Store Receipts

UPDATE: Here is Rainer Brockerhoff's comment from the bottom that article. Much more elegant solution.

I don't see the need for all those contortions...

To debug my receipt checking code, I just build, then show the product app in the Finder. Double-click it once and it will exit(173), then you'll get the receipt into the bundle.

Now go back to Xcode and debug the checker. The receipt will stay there until you clean; you can do all that again, or copy the receipt elsewhere and put it back after build - at one point I had the receipt reinserted by a build script.

If you want to test out the archived app, show the product in the Finder, then go up a few folder levels to the "Release" folder, and there'll you see the app - you can double-click it from there.


The long procedure for getting a receipt:

  1. Archive the app
  2. Within Xcode organizer
  3. Select Distribute...
  4. Export as: Mac Installer Package

Finally install it from the commandline like this

sudo installer -store -pkg (path to package including filename) -target /

Now the app should contain a receipt at this path

/Applications/SampleApp.app/Contents/_MASReceipt/receipt


Verification Email

Apple sends an email when you create a Test User within iTunes Connect.

Email subject:

Please verify the contact email address for your Apple ID

My mail ended up in my spam folder, so I never saw it. Thus never got verified the Test User Account.


Check Status

Within iTunes Connect under Manage Your Apps > SampleApp > Manage In-App Purchases

Here the status should say: Ready to Submit

If it doesn't, then you may need to upload a screenshot.

like image 75
neoneye Avatar answered Sep 23 '22 04:09

neoneye