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

  • SEARCH
  • Home
  • 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 8386947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:05:01+00:00 2026-06-09T18:05:01+00:00

I have two iPhones I use for testing my app. On Device A: NSLog(@Unfinished

  • 0

I have two iPhones I use for testing my app.

On Device A:

NSLog(@"Unfinished Transactions: [%i]", [[SKPaymentQueue defaultQueue].transactions count]);

Which outputs: “Unfinished Transactions: [0]”

When when I do a:

[[SKPaymentQueue defaultQueue] restoreCompletedTransactions]

the function

- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions

gets called with 17 items in the transactions array, each flagged as RESTORED. So, I loop over the set and call [[SKPaymentQueue defaultQueue] finishTransaction: transaction] on each.

After processing each item, (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue is called, and [[queue transactions] count] is equal to 4, not 17, which is something of a surprise.

If I re-run [[SKPaymentQueue defaultQueue] restoreCompletedTransactions] on this device, I repeatedly get the same result – despite having told each transaction I want it removed from the queue, updatedTransactions gets called with 17 items to process.

On device B,

$NSLog(@"Unfinished Transactions: [%i]", [[SKPaymentQueue defaultQueue].transactions count]);

Still outputs “Unfinished Transactions: [0]”

When I run

[[SKPaymentQueue defaultQueue] restoreCompletedTransactions]

, the function

- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions

NEVER gets called. Eventually

- (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue

is called, with

[[queue transactions] count]

equal to 0.

What could be causing this? It’s almost like the payment queue is linked to the device ID, not the Test Account Apple ID. Also, please forgive the terrible formatting of this question, I’m still getting used to StackOverflow. 🙂

  • 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-06-09T18:05:02+00:00Added an answer on June 9, 2026 at 6:05 pm

    This is a sandbox environment bug. I have had exactly the same issue that the

    - (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions

    was never called. Only the paymentQueueRestoreCompletedTransactionsFinished arrived after the call to restoreCompletedTransactions.

    I have checked it with an Apple engineer. He confirmed that my code is indeed correct and I should receive the updatedTransactions call. He said that the fact this is not happening in the sandbox environment is apparently a bug (he was not surprised about it at all).

    Honestly there is not much you can do about it. After he confirmed my code is correct I took the risk and released the App. It all works as expected with the real iTunes Connect server.

    So your best (maybe only) bet is to make sure you have it all set up as expected and go ahead and test it against the live server. Good luck! It worked for me.

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

Sidebar

Related Questions

I have two apps, both of which force the user to use the iPhone
I actually have two questions regarding exception/error handling in the iPhone app that I
In my iPhone app, I have two plist files to store Themes. One is
In my iPhone app, I have two UIViewcontroler class firstView and secondView. From the
I have an Iphone application in which i am using two types of purchases.Non
In my iPhone app I have two viewControllers: viewController1 has a tableView that shows
I am creating an iPhone app which I would like to have a similar
I'm currently developing an iPhone app where I have two UITextField's in one View
I'm working through the Facebook API for my iPhone app, and have two questions:
In my iPhone app, I have two two buttons, labeled Facebook and Twitter. I

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.