Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## 0.3.4+1

* Adds documentation for UserChoice and Alternative Billing.

## 0.3.4

* Adds `countryCode` API.
* Adds `countryCode` API.

## 0.3.3+1

Expand Down
6 changes: 6 additions & 0 deletions packages/in_app_purchase/in_app_purchase_android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ so you do not need to add it to your `pubspec.yaml`.
However, if you `import` this package to use any of its APIs directly, you
should [add it to your `pubspec.yaml` as usual][3].

## Alternative/UserChoice Billing

Alternative and UserChoice billing from google play is exposed from this package. Using this 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalize "Google Play" everywhere

also

Suggested change
Alternative and UserChoice billing from google play is exposed from this package. Using this 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.
Alternative and UserChoice billing from google play are exposed from this package. Using this 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.

Also, do you need to call isAlternativeBillingOnlyAvailable to use UserChoice billing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like if you setup user choice billing the sdk does the check for you "The system checks if the user's Google Play country is a country that supports alternative billing with user choice (i.e. a supported country)." https://developer.android.com/google/play/billing/alternative/alternative-billing-with-user-choice-in-app

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will make it clear that most of this section is about alternative billing only.


[Google Play documentation for Alternative billing](https://developer.android.com/google/play/billing/alternative)

## Migrating to 0.3.0
To migrate to version 0.3.0 from 0.2.x, have a look at the [migration guide](migration_guide.md).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: in_app_purchase_android
description: An implementation for the Android platform of the Flutter `in_app_purchase` plugin. This uses the Android BillingClient APIs.
repository: https://github.com/flutter/packages/tree/main/packages/in_app_purchase/in_app_purchase_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22

version: 0.3.4
version: 0.3.4+1

environment:
sdk: ^3.1.0
Expand Down