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 8512109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:11:34+00:00 2026-06-11T04:11:34+00:00

I have implemented additional receipt verification for in-app purchases in my application (inspired by

  • 0

I have implemented additional receipt verification for in-app purchases in my application (inspired by https://developer.apple.com/library/ios/#releasenotes/StoreKit/IAP_ReceiptValidation/_index.html).
So, after I get SKPaymentTransactionStatePurchased, I perform this validation, and on success, I unlock the game’s new content and, finally, I finish the transaction by

[[SKPaymentQueue defaultQueue] finishTransaction:myTransaction];

What happens if verification process cannot be finished say due to internet connection failure or if the user terminates the application during verification process? In this case I do not unlock content and do not finish the transaction. And I think it’s rather logical.

However, when I restarted the application (that had been terminated in “unfinished transaction” state) and tried to purchase the in-app, I fell into SKPaymentTransactionStateFailed state with transaction.error.code == SKErrorPaymentCancelled.
Also a message box appeared that said:

“You have already purchased this item, but it is not yet loaded. Tap “OK” to load it now.”

After pressing “OK”, I do not get any callback called – and hence I did not unlock the content.

So my questions are:
1) Is it OK to left transaction in unfinished state (if it cannot be verified)?
2) And how do I restore it? Maybe I’m missing some callback that accompanies “You have already purchased…” messagebox?

P.S. My in-app purchase is “consumable”. So I cannot use

[[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
  • 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-11T04:11:35+00:00Added an answer on June 11, 2026 at 4:11 am

    Okay, I resolved it. The essential thing is to listen to payment queue from App Delegate, not from “purchasing UI screen”. In other words,

    [[SKPaymentQueue defaultQueue] addTransactionObserver:self];
    

    must be in

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    

    not in my custom purchasing screen’s viewDidLoad.

    Great explanation can be found here:
    When should i validate in-app purchase transaction receipt?

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

Sidebar

Related Questions

I have implemented an in-app purchase into my iPhone application. It is non-consumable, and
I have implemented a JNI android application. This application requires a few additional 'Shared
I have implemented Facebook into my app but now I find that whenever I
I have implemented a new web app that makes use of the default membership
I have successfully implemented iAd into my App just this past week, but when
I have Devise implemented in a Rails 3 application, with the :registerable and :confirmable
I am writing a web application and have just implemented that a user can
I have created an Automation Add-in for Excel,implemented as a c# class library, which
I have a Web app using Spring 3.1.1 and Spring Security 3.1.0. I implemented
I have implemented correctly bump's api, and added this code: - (void) configureBump {

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.