Skip to content

Commit

Permalink
[in_app_purchase] Ensure the introductoryPriceMicros field is popul…
Browse files Browse the repository at this point in the history
…ated correctly. (flutter#4364)
  • Loading branch information
mvanbeusekom authored and KyleFin committed Dec 21, 2021
1 parent f860e03 commit 9abab4c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.4+7

* Ensure that the `SkuDetailsWrapper.introductoryPriceMicros` is populated correctly.

## 0.1.4+6

* Ensure that purchases correctly indicate whether they are acknowledged or not. The `PurchaseDetails.pendingCompletePurchase` field now correctly indicates if the purchase still needs to be completed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class SkuDetailsWrapper {
final String introductoryPrice;

/// [introductoryPrice] in micro-units 990000
@JsonKey(defaultValue: '')
@JsonKey(name: 'introductoryPriceAmountMicros', defaultValue: '')
final String introductoryPriceMicros;

/// The number of subscription billing periods for which the user will be given the introductory price, such as 3.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +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/plugins/tree/master/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.1.4+6
version: 0.1.4+7

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Map<String, dynamic> buildSkuMap(SkuDetailsWrapper original) {
'description': original.description,
'freeTrialPeriod': original.freeTrialPeriod,
'introductoryPrice': original.introductoryPrice,
'introductoryPriceMicros': original.introductoryPriceMicros,
'introductoryPriceAmountMicros': original.introductoryPriceMicros,
'introductoryPriceCycles': original.introductoryPriceCycles,
'introductoryPricePeriod': original.introductoryPricePeriod,
'price': original.price,
Expand Down

0 comments on commit 9abab4c

Please sign in to comment.