Skip to content

Commit 7cd0339

Browse files
authored
[in_app_purchase_android] Readme update for Alternative billing (#6578)
- **Add readme info about user choice billing and alternative billing** Fixes flutter/flutter/issues/144992
1 parent 080fd74 commit 7cd0339

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
## 0.3.4+1
2+
3+
* Adds documentation for UserChoice and Alternative Billing.
4+
15
## 0.3.4
26

3-
* Adds `countryCode` API.
7+
* Adds `countryCode` API.
48

59
## 0.3.3+1
610

packages/in_app_purchase/in_app_purchase_android/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ so you do not need to add it to your `pubspec.yaml`.
1111
However, if you `import` this package to use any of its APIs directly, you
1212
should [add it to your `pubspec.yaml` as usual][3].
1313

14+
## Alternative/UserChoice Billing
15+
16+
Alternative and UserChoice billing from Google Play is exposed from this package.
17+
18+
Using the Alternative billing only feature requires Google Play app configuration, checking if the feature is available (`isAlternativeBillingOnlyAvailable`) and informing users that Google Play does not handle all aspects of purchase (`showAlternativeBillingOnlyInformationDialog`). After those calls then you can call `setBillingChoice` and respond when a user attempts a purchase.
19+
20+
[Google Play documentation for Alternative billing](https://developer.android.com/google/play/billing/alternative)
21+
1422
## Migrating to 0.3.0
1523
To migrate to version 0.3.0 from 0.2.x, have a look at the [migration guide](migration_guide.md).
1624

packages/in_app_purchase/in_app_purchase_android/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: in_app_purchase_android
22
description: An implementation for the Android platform of the Flutter `in_app_purchase` plugin. This uses the Android BillingClient APIs.
33
repository: https://github.com/flutter/packages/tree/main/packages/in_app_purchase/in_app_purchase_android
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
5-
6-
version: 0.3.4
5+
version: 0.3.4+1
76

87
environment:
98
sdk: ^3.1.0

0 commit comments

Comments
 (0)