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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:00:38+00:00 2026-05-19T22:00:38+00:00

I have a few doubts about transaction receipt verifications: why is an external server

  • 0

I have a few doubts about transaction receipt verifications:

  • why is an external server necessary? Why can’t I just contact http://buy.itunes.apple.com directly from the iPhone?
  • what if this external server is down, or the receipt is not valid? How to communicate it to the payment queue? finishTransaction would still show a ‘payment succeeded’ alert view, because the transaction was actually successful, and I guess this would confuse users.

Sorry if I misunderstood the in-App Purchase flow or my questions aren’t clear enough. Thanks.

Edit: I guess I shouldn’t call finishTransaction if I find out the receipt is not valid, but is this a problem? The documentation says the application should always call that function. Also, at that point the money has already been transferred… confused

  • 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-19T22:00:39+00:00Added an answer on May 19, 2026 at 10:00 pm

    Receipt validation ensures that the transaction is complete and successful. You don’t want to do that from the iPhone because you can’t really trust the user’s phone.

    1. The user initiates an in-app purchase
    2. When complete, the app asks your server for validation
    3. You validate the receipt with Apple: if it’s valid, you can perform whatever action linked to the purchase (unlock/deliver content, register subscription…)
    4. The app removes the transaction from the queue (finishTransaction)

    If the server is down, you shouldn’t finish the transaction, but display an “unavailability message” to the user.

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

    will be called again later.

    But if you find out that a receipt is invalid, you should finish the associated transaction. If not, you may have extra-transactions living forever in the transaction queue. That means that each time your app runs, paymentQueue:updatedTransaction: will be called once per transaction…

    In my apps, receipt validation is done through a web service, returning an error code in case of an invalid receipt. That’s why an external server is needed. If a user somehow manages to skip receipt validation (by faking the web service “success” response), he won’t be able to unlock the content / access functionality because the server has no trace of the purchase.

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

Sidebar

Related Questions

No related questions found

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.