onepf / OpenIAB

Open In-App Billing for Google Play, SlideMe, Amazon Store, Nokia Store, Samsung Apps, Yandex.Store, Appland, Aptoide, AppMall and Fortumo.
http://onepf.org/openiab/
Apache License 2.0
476 stars 171 forks source link

[v0.9.8.3.1][Amazon] onIabPurchaseFinished is not invoked when canceling purchase #439

Closed MikhailAOstapenko closed 9 years ago

MikhailAOstapenko commented 9 years ago

Hi guys,

Reproducing steps:

  1. Launch purchase flow
  2. In Amazon billing window press 'Cancel' button
  3. Nothing happens

Same code works fine with GooglePlay and SamsungApps stores. It's looks like some unhandled exception occurred inside AmazonAppstoreBillingService.onPurchaseResponse function.

Here is my log: 01-22 15:28:41.291: D/c(3119): In App Purchasing SDK - Sandbox Mode: handleResponse 01-22 15:28:41.291: D/OpenIAB(3119): onPurchaseResponse() PurchaseRequestStatus:FAILED, reqId: 9e111a5e-0694-4ef9-8396-1804ec7267b3 01-22 15:28:41.291: E/c(3119): In App Purchasing SDK - Sandbox Mode: Error in sendResponse: java.lang.NullPointerException