dooboolab-community / flutter_inapp_purchase

(Sun Rised!) Flutter plugin for In App Purchase.
MIT License
549 stars 236 forks source link

Fixed consumable products reading on Android #439

Closed 33-Elephants closed 9 months ago

codecov[bot] commented 1 year ago

Codecov Report

Merging #439 (5a92914) into main (980cbc8) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #439   +/-   ##
=======================================
  Coverage   47.69%   47.69%           
=======================================
  Files           4        4           
  Lines         478      478           
=======================================
  Hits          228      228           
  Misses        250      250           
33-Elephants commented 11 months ago

As far as I remember there was a problem with reading "price", "currency" and "localizedPrice" fields for one-time charge items. Reading product info from subscriptionOfferDetails field works for subscriptions only. For one-time charge products oneTimePurchaseOfferDetails must be used instead.