purchases-flutter icon indicating copy to clipboard operation
purchases-flutter copied to clipboard

introductoryPrice returns null on Android

Open nechtas opened this issue 2 years ago • 2 comments

Starting from 5.x lib introductoryPrice price returns null on Android every time. Any package 4.x and bellow works correctly.

nechtas avatar Sep 26 '23 11:09 nechtas

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

RCGitBot avatar Sep 26 '23 11:09 RCGitBot

Hello @nechtas

Starting with Billing Client 5, only offers for which the user is eligible for are returned by the API. This means if you have already previously enjoyed an introductory offer, it will not be returned by the API and hence we cannot fill the introductoryPrice field. In BC4, offers were always returned even if the user was not eligible.

Unfortunately there is no way to "reset" intro offer eligibility in Android, so if you want to test it you will need to create a new Google testing account.

MarkVillacampa avatar Sep 27 '23 10:09 MarkVillacampa