question

seasonw avatar image
seasonw asked

Adobe AIR: how to differentiate between IAP failed and IAP user cancelled?

Hi, I'm new to Amazon API, planning to publish my android apps at Amazon Store. I have several apps developed by Adobe AIR, and I now working on Amazon IAP plugin. Very neat Amazon IAP plugin sample for Adobe AIR, but I have one question, how do I suppose to differentiate between IAP failed and IAP user cancelled? I attach the Amazon sample coding as following:- /** Dispatched when a purchase fails due to user cancelling or unknown error. */ private function onPurchaseFailed(e:AmazonPurchaseEvent):void { log("failed to purchase "+e.itemSku); } Thanks for help!
iap
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Seasonw, Unfortunately, there is no way to differentiate between IAP failed and user cancelled event. Bot are treated as Failed event. I would appreciate if you can let us know about your use case of cancelled event detection. We do not recommend to show any extra interstitial popup to notify the user about the success or failure of purchase since all the possible cases are covered by SDK through it's own UI.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

seasonw avatar image
seasonw answered
Thanks, just found that I forgot to mark it as correct answer after 2 months busy on coding. Thank you for your reply :)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.