Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate billing to 5.0.0 #387

Closed
wants to merge 3 commits into from
Closed

Conversation

youssefali424
Copy link
Contributor

Upgrade billingclient to 5.0.0

@cruz-evan
Copy link

Any updates to bumping billing?

@github-actions
Copy link

This PR is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days

@github-actions github-actions bot closed this Feb 21, 2023
hyochan pushed a commit that referenced this pull request Mar 7, 2023
This is build off of @youssefali424 #387 PR because that one had a couple issues. It didn't pass back the prices properly for items that were created in android billing 4.0 amongst other issues. 

I created two new dart objects that reflect android 5.0 billing objects `SubscriptionOffer` and `PricingPhase` that pass back all the information associated with a play store item, so you can navigate those to extract introductory offers and discounted subscriptions as opposed to just having a single offer price. 

I've also kept the `price`, `currency` and `localizedPrice` values and made them backwards compatible with items that were updated from billing 4.0 if your app relies on those (ours did) 

~~Note that the tests fail because of ios and android receipt validation only, which appears to not point to a valid URL anymore.~~

All tests are passing and extra code coverage has been added

Co-authored-by: youssefali424 <youssef4242014@gmail.com>
Co-authored-by: Sam Bergeron <sam@cronometer.com>
JoyHong pushed a commit to JoyHong/flutter_inapp_purchase that referenced this pull request Jul 6, 2023
This is build off of @youssefali424 hyochan#387 PR because that one had a couple issues. It didn't pass back the prices properly for items that were created in android billing 4.0 amongst other issues.

I created two new dart objects that reflect android 5.0 billing objects `SubscriptionOffer` and `PricingPhase` that pass back all the information associated with a play store item, so you can navigate those to extract introductory offers and discounted subscriptions as opposed to just having a single offer price.

I've also kept the `price`, `currency` and `localizedPrice` values and made them backwards compatible with items that were updated from billing 4.0 if your app relies on those (ours did)

~~Note that the tests fail because of ios and android receipt validation only, which appears to not point to a valid URL anymore.~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants