Skip to main content
Solved

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

  • January 16, 2023
  • 1 reply
  • 146 views

Forum|alt.badge.img+2

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.

 

 

Best answer by Miguel Carranza

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

View original
Did this post help you find an answer to your question?

1 reply

Miguel Carranza
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 84 replies
  • Answer
  • January 18, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings