iOS In App Purchases:
According to the docs there should be a cancelled state if the user taps an in-app item, and then taps cancel on the confirmation alert. This is not working (and has not been working for at least the last 6 months) - it’s returning “failed” instead.
state – A string containing the state of the transaction. Valid values are “purchased”, “restored”, “cancelled”, and “failed”.