Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions packages/in_app_purchase/in_app_purchase/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## NEXT

* Updates minimum supported SDK version to Flutter 3.41/Dart 3.11.
* Fixes the `completePurchase` docs, which referred to a `PurchaseException` type that does not exist.

## 3.3.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,13 @@ class InAppPurchase implements InAppPurchasePlatformAdditionProvider {
/// 2. Any subsequent attempts to buy the same product ID will fail with a purchase
/// error indicating a duplicate transaction is pending.
///
/// The method will throw a [PurchaseException] when the purchase could not be
/// finished. Depending on the [PurchaseException.errorCode] the developer
/// should try to complete the purchase via this method again, or retry the
/// [completePurchase] method at a later time. If the
/// [PurchaseException.errorCode] indicates you should not retry there might
/// be some issue with the app's code or the configuration of the app in the
/// respective store. The developer is responsible to fix this issue. The
/// [PurchaseException.message] field might provide more information on what
/// went wrong.
/// There is no shared exception type for a failed [completePurchase] call, so
/// errors are platform specific. On Android a failed acknowledgement is not
/// thrown, so the returned `Future<void>` still completes normally. To read
/// the result, call `completePurchase` on `InAppPurchaseAndroidPlatform` from
/// `in_app_purchase_android` directly, which returns a `BillingResultWrapper`
/// whose `responseCode` reports the failure. On iOS and macOS a failure
/// reported by StoreKit is thrown as a `PlatformException`.
Future<void> completePurchase(PurchaseDetails purchase) =>
InAppPurchasePlatform.instance.completePurchase(purchase);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## NEXT

* Updates minimum supported SDK version to Flutter 3.41/Dart 3.11.
* Fixes the `completePurchase` docs, which referred to a `PurchaseException` type that does not exist.

## 1.4.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,13 @@ abstract class InAppPurchasePlatform extends PlatformInterface {
/// > On Android, If you do not call [completePurchase] for a transaction on Android, Google Play
/// > will automatically refund and revoke the purchase after 3 days.
///
/// The method will throw a [PurchaseException] when the purchase could not be
/// finished. Depending on the [PurchaseException.errorCode] the developer
/// should try to complete the purchase via this method again, or retry the
/// [completePurchase] method at a later time. If the
/// [PurchaseException.errorCode] indicates you should not retry there might
/// be some issue with the app's code or the configuration of the app in the
/// respective store. The developer is responsible to fix this issue. The
/// [PurchaseException.message] field might provide more information on what
/// went wrong.
/// There is no shared exception type for a failed [completePurchase] call, so
/// errors are platform specific. On Android a failed acknowledgement is not
/// thrown, so the returned `Future<void>` still completes normally. To read
/// the result, call `completePurchase` on `InAppPurchaseAndroidPlatform` from
/// `in_app_purchase_android` directly, which returns a `BillingResultWrapper`
/// whose `responseCode` reports the failure. On iOS and macOS a failure
/// reported by StoreKit is thrown as a `PlatformException`.
Future<void> completePurchase(PurchaseDetails purchase) =>
throw UnimplementedError('completePurchase() has not been implemented.');

Expand Down
Loading