Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6938327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:28:45+00:00 2026-05-27T12:28:45+00:00

I am writing an mac application for the Mac App Store that uses in

  • 0

I am writing an mac application for the Mac App Store that uses in app purchase. I double checked and I think I have implemented everything correctly. So when I am making a product request the delegate method

- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response

is called, with the correct product id. Then I make a payment using

[[SKPaymentQueue defaultQueue] addPayment:payment];

The issue appears at this point. In the first 10-15 minutes the purchase dialog does not show up at all, and I neither do I receive the updatedTransactions notification. After some time if I try again, everything works correctly, I am prompted in 1-2 seconds for my credentials. This seems very strange for me, because they should work from the start.
Because of this my app was rejected several times, stating that in app purchases do not work.

Yes, I have added the receipt verification code, and if it doesn’t exist then I exit the app with code 173, I am prompted for my credentials, then the app reopens but the in apps do not work even after this. And yes, I have tested this with a built that has been created with a distribution profile. I am using XCode 4.2, and my OS is Lion.

After adding the payment to the queue, I tried starting a timer to check the transactions property of SKPaymentQueue periodically. The transactionIdentifier is the correct one, and it’s transactionState is SKPaymentTransactionStatePurchasing. This tells me that there is some communication issue between StoreKit and the Apple servers.

Anyone else experienced this issue? Any help would be appreciated, I am struggling with this for 3 days now and could not find a solution for this, and it’s driving me crazy.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:28:45+00:00Added an answer on May 27, 2026 at 12:28 pm

    I’ve found the answer at last. I have indeed implemented everything correctly according to the In App Purchase Programming Guide.

    It seems what I’ve been doing wrong is to add the transaction observer, before the receipt verification code. After I have changed the order (first verify the receipt, then add the observer) everything worked correctly. This detail should be mentioned somewhere. It caused a lot of headache.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a Mac app that uses Core Data as its persistence layer,
I am writing a mac application that uses the scripting bridge to control iTunes.
I'm writing an application that runs as a system daemon (root session) for Mac
So I am writing a mac application that parses SF Giants baseball statistics using
I am writing a Mac application that plays the streaming video. I'll use Media
im writing a video recorder application for mac with cocoa, and have a huge
I'm writing a Mac OS X application on Snow Leopard. I have a step
I'm writing an application that needs to use OpenGL, on the Mac, in C++.
I am writing a GUI application that works on Mac and Win and there
I'm new to building application on Mac. I have global data that I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.