Solved

How can I get the ID of the purchased product in Flutter?

  • 16 January 2023
  • 1 reply
  • 18 views

Badge

Hello.

How can I access the "product ID" of the purchased product when the user makes a purchase? I want to add as many keys as product purchased with firebase using this product id.

Eg:
Product ID = ak_20_key -> I will add 20 keys to Firebase.
Product ID = ak_10_key-> I will add 10 keys to Firebase.

 

 

icon

Best answer by Miguel Carranza 18 January 2023, 01:01

View original

1 reply

Userlevel 2
Badge +6

Hi SinanSS,

You should have the product/package before making the purchase, but after the purchase you can get it from here https://pub.dev/documentation/purchases_flutter/latest/models_customer_info_wrapper/CustomerInfo/allPurchasedProductIdentifiers.html

Reply