The question I wanted to ask is what happens to a pending purchase request if a user submits multiple ask to buy requests.
The setup would be:
store account 1 submits an ask to buy for product A.
Then an hour afterwards store account 1 submits another ask to buy request for product B.
The documentation quoted below states that only the most recent request, so in the example product B get's presented to the parent. But what happens to the pending request of product A?
Does that request get canceled by the store because the user is only allowed to ask to buy 1 product at a time?
And if it does get canceled, does my app get to know about it as if the purchase was unsuccessful or would I need to cancel that pending request myself as soon as the user submits a new ask to buy request?
this is the documentation I found: https://developer.apple.com/library/archive/technotes/tn2259/_index.html#//apple_ref/doc/uid/DTS40009578-CH1-UPDATE_YOUR_APP_FOR_ASK_TO_BUY
> If the child makes multiple Ask to Buy requests, only the most recent request is presented to the parent. Each new request restarts the 24 hour clock for processing the purchase request
>what happens to the pending request of product A?
Elsewhere under Apple's ask-to-buy it states: "Even if you make multiple requests for the same item, your organizer will get only one notification." I believe 'the same item' there means that the parent will get two requests in your example.
> if it does get canceled, does my app get to know about it
If it is 'canceled' by the parent your app gets a 'failed' transaction to updatedTransactions if it maintains an observer (or the next time it adds an observer). If the parent does not respond within 24 hours it disappears with no transaction.