Cancelling Amazon Purchase sends incorrect PurchaseFailureReason

Hello. I am using Unity IAP 1.18.0, Unity version 5.6.3p1.

We are using it successfully in the Google Play store and the AppStore. But, when trying to use it with the Amazon store we encounter this bug (we are sandbox testing and using the Amazon App Tester). The Amazon purchase works if the user buys the item, but we get an incorrect flow when the user cancels.

When the user cancels the purchase Unity IAP gives us a PurchaseFailureReason with the reason Unknown rather than UserCancelled. Is this a known bug? I haven’t been able to find any information regarding it here. This happens if the user hits “Cancel” or selects outside of the native amazon dialogue.

Thanks.

@lblast

Unfortunately, this isn’t available on Amazon. Amazon only shows that a purchase failed; it doesn’t give a “user cancelled” as the failure reason:
https://s3-us-west-1.amazonaws.com/devportal-reference-docs/iap/API-Reference/index.html

Thank you for the information.