Unresolved pending purchases for consumables

In our app we are running into a few issues with pending purchases staying on receipt indefinitely.

These are consumable purchases where we received the purchase succeeded from apple but then something went wrong on our servers to validate and confirm the purchase.

At this point the purchase stays on the apple receipt indefinitely or until we confirm it.

The problem is there are lots of scenarios where we can't confirm purchases anymore (like a game world expired/banned player/etc). So there's a few things I'd like to know to see how this could be handle correctly.

1- Was the user already charged, and if yes would they ever be refunded if the purchase is not confirmed (some sort of expiry)?

2- Is there a way to cancel this sort of pending transaction directly from the app or backend?

3- If one of these users asked for a refund from apple would this clear the purchase from the receipt?

Any information would be greatI couldn't find a lot of info on this topic.

Unresolved pending purchases for consumables
 
 
Q