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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:08:31+00:00 2026-06-18T01:08:31+00:00

We have a server which amongst other things needs to buy something from a

  • 0

We have a server which amongst other things needs to buy something from a 3rd party (via an API call) before returning the consumable back to the user. Obviously it checks the Apple receipt beforehand.

What is the best way to deal with a server side in-app failure, say if the 3rd party service fails? At this point the user’s experience is that of having paid but not received the consumable and trying again would cause them to spend more money.

So far I have come up with:

On device

  1. When inapp completes store the receipt for that productId as
    ‘unclaimed’
  2. Contact server as usual.
  3. If success then clear the
    unclaimed receipt/productId
  4. If error then next time user tries the
    same inapp skip the actual purchase part and go straight to 2.
    with the previous receipt.

Then on server

  1. Verify receipt with apple
  2. Check that we haven’t already provided the user with a consumable for that receipt (prevent re-use of receipts)
  3. Do a call to 3rd party
  4. On success return consumable.
  5. On failure reply with an error (at which point the client will keep the receipt as unclaimed and re-send it when trying again).

Thanks in advance!

  • 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-18T01:08:32+00:00Added an answer on June 18, 2026 at 1:08 am

    As far as I understand, your main issue is with the UI/UX related to buying the consumable.

    I don’t know how your consumable is “visible/usable” to the user, but the key to me would be making it clear to the user that the transaction with the server entered a “temporary failure” state. This is the same as it happens with the App Store when your app download experiences any hindrances. It could be marked as “loading/waiting” and it would be good if instead of “buying” you could make explicit that the consumable will only need to be downloaded (“install/retry/download/reclaim” as opposed to “buy”).

    It would be also extremely good to have in the same place a “contact us in case of issues” option. I don’t know why your 3rd party connection might fail, but if it does on a less than sporadic fashion, I bet more than a couple of users will need to complain.

    As to the client-server protocol side of the question, what you describe seems good to me. The key point here is that the server keeps track of which receipt has been already successfully claimed; the client in principle can try to reuse a receipt as many times as it wants, it will only succeeds on the first attempt (before the server marks the receipt as delivered). If you want more resiliency, I would introduce an explicitly acknowledgement phase from the client to the server, confirming that the consumable has been successfully accounted for.

    Hope it helps.

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

Sidebar

Related Questions

I have a server which already host ASP.Net website. I am migrating from blogger
I have a server which executes Python scripts from a certain directory path. Incidently
I have a server application which I want to protect from being stopped by
I have a parent object (part of a DAL) that contains, amongst other things,
I have server which send message into MQ. Message remove from queue when worker
I'm working on a system which amongst other things, runs payroll, a heavy load
I have a server which I can connect to via SSH, this server is
We have restful api over HTTP. Amongst other clients we have also mobile-device clients
I have server component which connects to a remote server via HTTP(s) and gets
Hi I have a server which has several virtual hosts set up on it.

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.