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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:11:50+00:00 2026-06-07T21:11:50+00:00

I mean, should my steps be? 1) Get SKPaymentTransactionStatePurchased 2) Remove it from SKPaymentQueue

  • 0

I mean, should my steps be?

1) Get SKPaymentTransactionStatePurchased

2) Remove it from SKPaymentQueue and provide the content by [[SKPaymentQueue defaultQueue] finishTransaction: transaction];

3) Validate the receipt and then, if it’s invalid, block the content i’ve just provided

Or should i change 2nd step to 3rd instead?

1) Get SKPaymentTransactionStatePurchased

2) Validate the receipt and then, if it’s invalid, dont’t provide content

3) Remove it from SKPaymentQueue anyway [[SKPaymentQueue defaultQueue] finishTransaction: transaction];

In first scenario user can turn the internet off right after the purchase, so i won’t be able to validate the receipt. But in the second, there may occure some problems with internet between step 1 and 2, so i won’t finish the transaction and won’t provide the content, that would be a bad user experience.

So what way did you choose for your app and why?

My Choice

I’ve choosen the second scenario, since choosing the first one makes my app be easily cracked by iAP Cracker.

  • 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-07T21:11:51+00:00Added an answer on June 7, 2026 at 9:11 pm

    Scenario 2.
    If the internet blows up, you won’t get to -finishTransaction.
    But that’s cool, cause you can retry (NSTimer) and your app will be given the unfinished transaction on start up.
    And that’s exactly how StoreKit is designed to work (even though it’s not obvious from reading the docs).

    StoreKit comes with transactions, for a good reason. The user can simply quit the app right after purchasing, and you still have to recover from that.
    And that’s why Apple recommends to set your transaction observer as soon as possible in the app lifecycle.

    Don’t ever finish the transaction before providing the content, you’ll have to implement your own transaction system on top of StoreKit, and you don’t want to do that, believe me (I’ve seen it done, it was a disaster).

    Edit: in all honesty, the eventually of a user turning the internet off after purchase and before you validate is ridiculously low. The guy was on they internet a second ago, nobody just goes out to cut the internet in the middle of a purchase.
    But it’s possible that the user gets interrupted at that the moment and send your app to the background.
    Your app can then get killed for whatever reason iOS deems appropriate.
    And when you’re apps starts again, well your app won’t remember having a purchase to start with, and store kit won’t be of big help, since you’ve already finished the transaction.

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

Sidebar

Related Questions

std::string x(x); This crashes very badly on my compiler. Does this mean I should
I have two things I need this for, these should explain what I mean:
How do I get a thumbnail of a video imported from the camera roll,
guys please post me an example for threading in MFC....it should show the progress
I mean the small exit/cancel button marked with an X in the top right
I mean things like: FK1 -> 1FK2 -> 2PK Please, note that 1FK2 is
I mean something like this: http://www.globalscaletechnologies.com/p-25-sheevaplug-dev-kit-uk.aspx My minimal hardware requirement is: Ethernet card UPDATE:
I mean, if I have an object and I apply 3 transforms to it,
I mean when the user starts my application(exe). I want it to start directly
I mean library and syntax of C#.

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.