Question

how to obtain information such as the real price paid by a user in the flutter sdk

  • 13 April 2024
  • 1 reply
  • 12 views

Badge +2

For a non-subscription purchase, is there a way to do it in flutter client, serverless case. Get information such as the actual price paid by the user and the country.


This post has been closed for comments

1 reply

Userlevel 4
Badge +8

You could get the exact price of the product from our SDK using the priceString method here: https://pub.dev/documentation/purchases_flutter/6.27.0/models_store_product_wrapper/StoreProduct/priceString.html. This will return a formatted price of the item that is being looked into, including its currency sign.