Discussions

Ask a Question

How can I handle pending payments?

In Android, Adapty can return an error like this: Adapty Error {"adaptyCode": "pendingPurchase", "code": 121612016, "localizedDescription": "Purchase: PENDING_PURCHASE"} How do I know when and if the payment is successful?

How to prepare a new an-app purchase for approving in appstore?

Hi Adapty community! Trying to publish a new version of the app, where in-app purchases should appear for the first time. Problem: If we put a subscription screen with a subscribe button — App Store Review team see crashes, because the Adapty that handles subscriptions doesn't find approved subscriptions in the Connect, it doesn't pull them and the app crashes. And (as far as I understand) we can't approve in-apps independently (without testing a complete working application). Question: How to break the vicious circle: 1. App Store Review can't test purchases, because in-apps are not approved. 2. New in-apps can't be approved separately, App Store Review wants to test them already inside a fully working app. Sorry if this question is off-topic. Thanks for any advice.

Analytics not showing up

Hi, I have connected Adapty with Google Play Store. But I am not seeing the stats still. Is there anything wrong with my integration.

Не работает с боевой версией

Здравствуйте! Приложение сделано на Flutter, используется библиотека https://pub.dev/packages/adapty_flutter. В версии для ИОС все работает без проблем, версия для андроид получает пэйволы только при запуске на реальном устройстве в режиме эмулятора в ИДЕ Андроид студио. Лог из консоли телефона могу предоставить. Но, естественно на тестовой версии не работает связка с стором. В боевой версии из стора, вместо пэйвола final GetPaywallsResult getPaywallsResult = await Adapty.getPaywalls( forceUpdate: false); final List<AdaptyPaywall>? paywalls = getPaywallsResult.paywalls; errorText = errorText + "payWalls: $paywalls"; myPaywall = paywalls?.firstWhere((paywall) => paywall.developerId == "MainSubscribeDailyHabits", orElse: null); product = myPaywall?.products?.last; получаю AdaptyError (code null), продукт подцепить не могу т.к. он нулевой, соответсвенно при выполнении final MakePurchaseResult makePurchaseResult = await Adapty.makePurchase(product!); Прошу помочь локализовать и решить проблему Логин в системе соответсвует автору запроса

API: Active access level when subscription is not active

Hello, I am seeing weird response from API. As you can see in the below response, the standard subscription is not active , but the access_level is. I upgraded the use to the premium. ``` { app_id: 'xxx', profile_id: '767a3aef-e429-463c-85fb-978308646873', customer_user_id: 'xxx', paid_access_levels: { standard: { id: 'standard', is_active: true, is_lifetime: false, expires_at: '2022-02-28T20:17:02.000000+0000', starts_at: null, will_renew: false, vendor_product_id: 'xxx.pricingPlan.standard', store: 'app_store', activated_at: '2022-01-16T14:41:53.000000+0000', renewed_at: '2022-01-29T21:12:02.000000+0000', unsubscribed_at: null, billing_issue_detected_at: null, is_in_grace_period: false, active_introductory_offer_type: null, active_promotional_offer_type: null, active_promotional_offer_id: null, cancellation_reason: null, is_refund: false }, premium: { id: 'premium', is_active: true, is_lifetime: false, expires_at: '2022-01-29T21:41:19.000000+0000', starts_at: null, will_renew: true, vendor_product_id: 'xxx.pricingPlan.premium', store: 'app_store', activated_at: '2022-01-16T14:41:53.000000+0000', renewed_at: '2022-01-29T21:36:19.000000+0000', unsubscribed_at: null, billing_issue_detected_at: null, is_in_grace_period: false, active_introductory_offer_type: null, active_promotional_offer_type: null, active_promotional_offer_id: null, cancellation_reason: null, is_refund: false } }, subscriptions: { 'xxx.pricingPlan.standard': { is_active: false, is_lifetime: false, expires_at: '2022-01-29T21:17:02.000000+0000', starts_at: null, will_renew: true, vendor_product_id: 'xxx.pricingPlan.standard', vendor_transaction_id: '1000000959148009', vendor_original_transaction_id: '1000000949843940', store: 'app_store', activated_at: '2022-01-16T14:41:53.000000+0000', renewed_at: '2022-01-29T21:12:02.000000+0000', unsubscribed_at: null, billing_issue_detected_at: null, is_in_grace_period: false, active_introductory_offer_type: null, active_promotional_offer_type: null, active_promotional_offer_id: null, cancellation_reason: null, is_sandbox: true, is_refund: false }, 'xxx.pricingPlan.premium': { is_active: true, is_lifetime: false, expires_at: '2022-01-29T21:41:19.000000+0000', starts_at: null, will_renew: true, vendor_product_id: 'xxx.pricingPlan.premium', vendor_transaction_id: '1000000959153214', vendor_original_transaction_id: '1000000949843940', store: 'app_store', activated_at: '2022-01-16T14:41:53.000000+0000', renewed_at: '2022-01-29T21:36:19.000000+0000', unsubscribed_at: null, billing_issue_detected_at: null, is_in_grace_period: false, active_introductory_offer_type: null, active_promotional_offer_type: null, active_promotional_offer_id: null, cancellation_reason: null, is_sandbox: true, is_refund: false } }, non_subscriptions: null, promotional_offer_eligibility: false, introductory_offer_eligibility: false, custom_attributes: {} } ```

purchaserInfo.accessLevel is empty

Hi, We are testing in-app purchase on sandbox for IOS and accessLevel returns empty everytime. Can you help us?

Restore

Hi! Adapty Team Adapty.restorePurchases() extend the free trial? Problem: We have 170 free trails but have 1 purchases after 5 days. How is work?

You already own this item, react-native, android

Somehow I managed to buy 4 instances of the same product and then, out of nowhere, google play start telling me, that "You already own this item". Well, that kinda not what im looking for. I googled it and found out that you should "consume" items. But i couldnt find anything about it in your docs or in discussions. I would love to be able to buy as many items as i want, but im stuck. What should i do to make this work? Thank you for your time. I use latest React-native on real android device.

React-native android makePurchase returns purchaserInfo as undefined in sandbox mode

Good day. I am using rn v6.2.0 When in sandbox mode I try to buy a product, transaction goes fine, i receive an email from google and i can get receipt id. But purchaserInfo returns as undefined. I tries to find anything in docs about it, but found nothing. My code looks like this: try { const {purchaserInfo, receipt, product} = await adapty.purchases.makePurchase(productt); console.log('\x1b[36m%s\x1b[0m', purchaserInfo, receipt, product); // "premium" is an identifier of default access level if (purchaserInfo?.accessLevels['premium'].isActive) { } } catch (e) {} I am trying to get this information: transaction id and purchase id When I try to restore purchases, with const {purchaserInfo, receipt, googleValidationResults} = await adapty.purchases.restore(); I get purchaserInfo with empty accessLevels, empty nonSubscriptions and a profileId receipt undeifned googleValidationResults undefined What am i doing wrong?

Adapty reporting API or scheduled email reports

Hi! Is it possible to work with Adapty reports without user interface? I wonder if there is hidden options of Reporting API or scheduled email reports ? If no right now, when it will available?