Relative Content

Tag Archive for flutterin-app-purchase

How do I know the quantity when purchasing?

Now I am using the in_app_purchase and in_app_purchase package in my app.
in_app_purchase: ^3.2.0
in_app_purchase_android: ^0.3.6+8
I want to purchase the multi instances in app.
But I can’t find the method to get the quantity.
Please let me know how I can process this problem.

how to show previous price to existing user when the price are changed of subscription in flutter

i am new to flutter and i have created one application which have subscription feature. I have implemented in-app purchases with an auto-renewable subscription priced at 299. Some users have purchased this plan. After that, I update the price of the plan to 399. I display the price directly from Play Store or App Store’s purchase details. Now, even for users who purchased the plan at the previous price, it is displaying the current price. I want to show the price at which the user purchased the plan.

how to show previously purchased subscription price to the existing user

I have implemented in-app purchases in my Flutter app with an auto-renewable subscription priced at 199. Some users have purchased this plan. After that, I changed the price of the plan to 250. I display the price directly from Play Store or App Store’s purchase details. Now, even for users who purchased the plan at the previous price, it is displaying the current price. I want to show the price at which the user purchased the plan.

Testing in-app purchases with sandbox mode automatically closing bottom-sheet after signing in and reopening

import ‘dart:async’; import ‘dart:developer’; import ‘package:get/get.dart’; import ‘package:in_app_purchase/in_app_purchase.dart’; import ‘package:in_app_purchase_storekit/store_kit_wrappers.dart’; import ‘package:weight_loss_app/modules/talking_oath/talking_outh/binding/talking_oath_binding.dart’; import ‘package:weight_loss_app/modules/talking_oath/talking_outh/view/talking_oath_page.dart’; class InAppPurchaseUtils extends GetxController { // Singleton instance InAppPurchaseUtils._(); static final InAppPurchaseUtils _instance = InAppPurchaseUtils._(); static InAppPurchaseUtils get instance => _instance; late StreamSubscription<List<PurchaseDetails>> _purchasesSubscription; @override void onInit() { super.onInit(); initialize(); } @override void onClose() { _purchasesSubscription.cancel(); super.onClose(); } Future<void> initialize() async […]