Describe the bug
(Also posted in the community: https://community.revenuecat.com/sdks-51/unable-to-resubscribe-after-expiration-in-testflight-sandbox-environment-many-related-posts-before-without-a-solution-2006)
Hi,
I have searched and read many posts regarding my problem.
A
Unable to re-purchase a subscription in sandbox.
T
Guidance on handling expired subscriptions
P
Unable to re purchase subscription in sandbox environment of IOS.
R
resubscribes is not currently working for me
Many users encountered the same issue as mine. However, none of them received a solution or clear confirmation about this issue.
A new sandbox user works fine with the first purchase of a subscription item. But after expiration, if we want to resubscribe, it sometimes just fails.
More specifically, we are using https://github.com/RevenueCat/purchases-unity/releases/download/4.1.0/Purchases-UnityIAP.unitypackage with a Unity app.
When we click on a subscription button for a resubscription, the function PurchasePackage works fine without an error, but in the callback, we check customerInfo.Entitlements.Active.ContainsKey(entitlementId) and it is still false.
I think at least there should be a confirmation whether it only happens in TestFlight/sandbox environment or not?
Thanks!
Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.
-
Environment
- Platform: iOS
- SDK version: 4.1.0
- OS + version:
- Xcode/Android Studio version:
- Unity version: 2020.3.32f1
- How widespread is the issue. Percentage of devices affected.
-
Debug logs that reproduce the issue
- (1) This is from the first subscription:
Got all offerings!
RevenueCatPurchaseManager:InitializePurchases()
2022-09-02 15:02:10.691183+0800 PreteethAIPro[8527:584505] [Purchases] - DEBUG: ℹ️ Vending Offerings from cache
2022-09-02 15:02:10.691597+0800 PreteethAIPro[8527:584505] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:02:10.691896+0800 PreteethAIPro[8527:584505] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:02:10.692098+0800 PreteethAIPro[8527:584505] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:02:10.692281+0800 PreteethAIPro[8527:584505] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:02:10.692493+0800 PreteethAIPro[8527:584505] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:02:10.692675+0800 PreteethAIPro[8527:584505] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:02:10.692832+0800 PreteethAIPro[8527:584505] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:02:10.692987+0800 PreteethAIPro[8527:584505] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:02:10.693484+0800 PreteethAIPro[8527:584505] json = {"offerings":{"current":{"availablePackages":[{"identifier":"$rc_annual","offeringIdentifier":"default","packageType":"ANNUAL","product":{"title":"Preteeth AI Pro Annual","introPrice":{"cycles":1,"price":0,"periodUnit":"MONTH","priceString":"$0.00","periodNumberOfUnits":1,"period":"P1M"},"priceString":"$15,900.00","identifier":"com.preteethai.dentist.subscription.annual","productCategory":"SUBSCRIPTION","price":15900,"currencyCode":"TWD","discounts":[],"productType":"NON_CONSUMABLE","description":"Preteeth AI Pro Annual"}},{"packageType":"MONTHLY","product":{"discounts":[],"priceString":"$3,290.00","productType":"NON_CONSUMABLE","introPrice":{"periodUnit":"MONTH","price":0,"periodNumberOfUnits":1,"cycles":1,"priceString":"$0.00","period":"P1M"},"productCategory":"SUBSCRIPTION","price":3290,"description":"Preteeth AI Pro Monthly","identifier":"com.preteethai.dentist.subscription.monthly","currencyCode":"TWD","title":"Preteeth AI Pro Monthly"},"offeringIdentifier":"default","identifier":"$rc_monthly"}],"annual":{"offeringIdentifier":"default","identifier":"$rc_annual","product":{"discounts":[],"description":"Preteeth AI Pro Annual","productType":"NON_CONSUMABLE","currencyCode":"TWD","identifier":"com.preteethai.dentist.subscription.annual","title":"Preteeth AI Pro Annual","productCategory":"SUBSCRIPTION","price":15900,"introPrice":{"price":0,"periodUnit":"MONTH","cycles":1,"period":"P1M","priceString":"$0.00","periodNumberOfUnits":1},"priceString":"$15,900.00"},"packageType":"ANNUAL"},"serverDescription":"The standard set of packages","identifier":"default","monthly":{"product":{"description":"Preteeth AI Pro Monthly","introPrice":{"period":"P1M","price":0,"periodUnit":"MONTH","periodNumberOfUnits":1,"priceString":"$0.00","cycles":1},"discounts":[],"price":3290,"priceString":"$3,290.00","productType":"NON_CONSUMABLE","title":"Preteeth AI Pro Monthly","productCategory":"SUBSCRIPTION","currencyCode":"TWD","identifier":"com.preteethai.dentist.subscription.monthly"},"packageType":"MONTHLY","identifier":"$rc_monthly","offeringIdentifier":"default"}},"all":{"default":{"annual":{"product":{"introPrice":{"period":"P1M","cycles":1,"periodUnit":"MONTH","priceString":"$0.00","periodNumberOfUnits":1,"price":0},"priceString":"$15,900.00","currencyCode":"TWD","discounts":[],"description":"Preteeth AI Pro Annual","identifier":"com.preteethai.dentist.subscription.annual","productCategory":"SUBSCRIPTION","productType":"NON_CONSUMABLE","title":"Preteeth AI Pro Annual","price":15900},"identifier":"$rc_annual","packageType":"ANNUAL","offeringIdentifier":"default"},"availablePackages":[{"identifier":"$rc_annual","packageType":"ANNUAL","offeringIdentifier":"default","product":{"introPrice":{"priceString":"$0.00","period":"P1M","periodUnit":"MONTH","cycles":1,"price":0,"periodNumberOfUnits":1},"price":15900,"productCategory":"SUBSCRIPTION","priceString":"$15,900.00","title":"Preteeth AI Pro Annual","description":"Preteeth AI Pro Annual","productType":"NON_CONSUMABLE","discounts":[],"identifier":"com.preteethai.dentist.subscription.annual","currencyCode":"TWD"}},{"identifier":"$rc_monthly","product":{"productType":"NON_CONSUMABLE","identifier":"com.preteethai.dentist.subscription.monthly","title":"Preteeth AI Pro Monthly","discounts":[],"price":3290,"currencyCode":"TWD","productCategory":"SUBSCRIPTION","priceString":"$3,290.00","description":"Preteeth AI Pro Monthly","introPrice":{"cycles":1,"priceString":"$0.00","price":0,"period":"P1M","periodUnit":"MONTH","periodNumberOfUnits":1}},"packageType":"MONTHLY","offeringIdentifier":"default"}],"identifier":"default","serverDescription":"The standard set of packages","monthly":{"packageType":"MONTHLY","offeringIdentifier":"default","identifier":"$rc_monthly","product":{"productType":"NON_CONSUMABLE","price":3290,"identifier":"com.preteethai.dentist.subscription.monthly","introPrice":{"cycles":1,"period":"P1M","periodUnit":"MONTH","price":0,"periodNumberOfUnits":1,"priceString":"$0.00"},"title":"Preteeth AI Pro Monthly","currencyCode":"TWD","description":"Preteeth AI Pro Monthly","priceString":"$3,290.00","discounts":[],"productCategory":"SUBSCRIPTION"}}}}}}
_getOfferings {"offerings":{"current":{"availablePackages":[{"identifier":"$rc_annual","offeringIdentifier":"default","packageType":"ANNUAL","product":{"title":"Preteeth AI Pro Annual","introPrice":{"cycles":1,"price":0,"periodUnit":"MONTH","priceString":"$0.00","periodNumberOfUnits":1,"period":"P1M"},"priceString":"$15,900.00","identifier":"com.preteethai.dentist.subscription.annual","productCategory":"SUBSCRIPTION","price":15900,"currencyCode":"TWD","discounts":[],"productType":"NON_CONSUMABLE","description":"Preteeth AI Pro Annual"}},{"packageType":"MONTHLY","product":{"discounts":[],"priceString":"$3,290.00","productType":"NON_CONSUMABLE","introPrice":{"periodUnit":"MONTH","price":0,"periodNumberOfUnits":1,"cycles":1,"priceString":"$0.00","period":"P1M"},"productCategory":"SUBSCRIPTION","price":3290,"description":"Preteeth AI Pro Monthly","identifier":"com.preteethai.dentist.subscription.monthly","currencyCode":"TWD","title":"Preteeth AI Pro Monthly"},"offeringIdentifier":"default","identifier":"$rc_monthly"}],"annual":{"offeringIdentifier":"default","identifier":"$rc_annual","product":{"discounts":[],"description":"Preteeth AI Pro Annual","productType":"NON_CONSUMABLE","currencyCode":"TWD","identifier":"com.preteethai.dentist.subscription.annual","title":"Preteeth AI Pro Annual","productCategory":"SUBSCRIPTION","price":15900,"introPrice":{"price":0,"periodUnit":"MONTH","cycles":1,"period":"P1M","priceString":"$0.00","periodNumberOfUnits":1},"priceString":"$15,900.00"},"packageType":"ANNUAL"},"serverDescription":"The standard set of packages","identifier":"default","monthly":{"product":{"description":"Preteeth AI Pro Monthly","introPrice":{"period":"P1M","price":0,"periodUnit":"MONTH","periodNumberOfUnits":1,"priceString":"$0.00","cycles":1},"discounts":[],"price":3290,"priceString":"$3,290.00","productType":"NON_CONSUMABLE","title":"Preteeth AI Pro Monthly","productCategory":"SUBSCRIPTION","currencyCode":"TWD","identifier":"com.preteethai.dentist.subscription.monthly"},"packageType":"MONTHLY","identifier":"$rc_monthly","offeringIdentifier":"default"}},"all":{"default":{"annual":{"product":{"introPrice":{"period":"P1M","cycles":1,"periodUnit":"MONTH","priceString":"$0.00","periodNumberOfUnits":1,"price":0},"priceString":"$15,900.00","currencyCode":"TWD","discounts":[],"description":"Preteeth AI Pro Annual","identifier":"com.preteethai.dentist.subscription.annual","productCategory":"SUBSCRIPTION","productType":"NON_CONSUMABLE","title":"Preteeth AI Pro Annual","price":15900},"identifier":"$rc_annual","packageType":"ANNUAL","offeringIdentifier":"default"},"availablePackages":[{"identifier":"$rc_annual","packageType":"ANNUAL","offeringIdentifier":"default","product":{"introPrice":{"priceString":"$0.00","period":"P1M","periodUnit":"MONTH","cycles":1,"price":0,"periodNumberOfUnits":1},"price":15900,"productCategory":"SUBSCRIPTION","priceString":"$15,900.00","title":"Preteeth AI Pro Annual","description":"Preteeth AI Pro Annual","productType":"NON_CONSUMABLE","discounts":[],"identifier":"com.preteethai.dentist.subscription.annual","currencyCode":"TWD"}},{"identifier":"$rc_monthly","product":{"productType":"NON_CONSUMABLE","identifier":"com.preteethai.dentist.subscription.monthly","title":"Preteeth AI Pro Monthly","discounts":[],"price":3290,"currencyCode":"TWD","productCategory":"SUBSCRIPTION","priceString":"$3,290.00","description":"Preteeth AI Pro Monthly","introPrice":{"cycles":1,"priceString":"$0.00","price":0,"period":"P1M","periodUnit":"MONTH","periodNumberOfUnits":1}},"packageType":"MONTHLY","offeringIdentifier":"default"}],"identifier":"default","serverDescription":"The standard set of packages","monthly":{"packageType":"MONTHLY","offeringIdentifier":"default","identifier":"$rc_monthly","product":{"productType":"NON_CONSUMABLE","price":3290,"identifier":"com.preteethai.dentist.subscription.monthly","introPrice":{"cycles":1,"period":"P1M","periodUnit":"MONTH","price":0,"periodNumberOfUnits":1,"priceString":"$0.00"},"title":"Preteeth AI Pro Monthly","currencyCode":"TWD","description":"Preteeth AI Pro Monthly","priceString":"$3,290.00","discounts":[],"productCategory":"SUBSCRIPTION"}}}}}}
Purchases:_getOfferings(String)
Purchases GetOfferings succeeded!
RevenueCatPurchaseManager:<GetOfferingsAndSetIsSubscribedAndLogIn>b__17_0(Offerings, Error)
GetOfferingsFunc:Invoke(Offerings, Error)
Purchases:_getOfferings(String)
2022-09-02 15:02:10.703620+0800 PreteethAIPro[8527:584505] [Purchases] - DEBUG: ℹ️ Vending CustomerInfo from cache.
2022-09-02 15:02:10.704570+0800 PreteethAIPro[8527:584505] json = {"customerInfo":{"originalPurchaseDate":null,"latestExpirationDateMillis":null,"nonSubscriptionTransactions":[],"managementURL":null,"activeSubscriptions":[],"allPurchasedProductIdentifiers":[],"firstSeen":"2022-09-02T07:01:49Z","entitlements":{"active":{},"all":{}},"latestExpirationDate":null,"allExpirationDates":{},"allExpirationDatesMillis":{},"originalPurchaseDateMillis":null,"originalAppUserId":"$RCAnonymousID:63972c9ae6bd42ccb8ca9be1222ae775","requestDateMillis":1662102109000,"originalApplicationVersion":null,"requestDate":"2022-09-02T07:01:49Z","firstSeenMillis":1662102109000,"allPurchaseDates":{},"allPurchaseDatesMillis":{}}}
_getCustomerInfo {"customerInfo":{"originalPurchaseDate":null,"latestExpirationDateMillis":null,"nonSubscriptionTransactions":[],"managementURL":null,"activeSubscriptions":[],"allPurchasedProductIdentifiers":[],"firstSeen":"2022-09-02T07:01:49Z","entitlements":{"active":{},"all":{}},"latestExpirationDate":null,"allExpirationDates":{},"allExpirationDatesMillis":{},"originalPurchaseDateMillis":null,"originalAppUserId":"$RCAnonymousID:63972c9ae6bd42ccb8ca9be1222ae775","requestDateMillis":1662102109000,"originalApplicationVersion":null,"requestDate":"2022-09-02T07:01:49Z","firstSeenMillis":1662102109000,"allPurchaseDates":{},"allPurchaseDatesMillis":{}}}
Purchases:_getCustomerInfo(String)
2022-09-02 15:02:10.709135+0800 PreteethAIPro[8527:585089] [Purchases] - DEBUG: ℹ️ LogInOperation: Started
2022-09-02 15:02:10.709239+0800 PreteethAIPro[8527:585089] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST subscribers/identify
2022-09-02 15:02:10.710162+0800 PreteethAIPro[8527:585089] [Purchases] - DEBUG: ℹ️ API request started: POST /v1/subscribers/identify
2022-09-02 15:02:11.379985+0800 PreteethAIPro[8527:585089] [Purchases] - DEBUG: ℹ️ API request completed: POST /v1/subscribers/identify 200
2022-09-02 15:02:11.405508+0800 PreteethAIPro[8527:585089] [Purchases] - DEBUG: 👤 Log in successful
2022-09-02 15:02:11.414482+0800 PreteethAIPro[8527:585089] [Purchases] - DEBUG: ℹ️ Sending updated CustomerInfo to delegate.
2022-09-02 15:02:11.414654+0800 PreteethAIPro[8527:585089] [Purchases] - DEBUG: ℹ️ LogInOperation: Finished
2022-09-02 15:02:11.414788+0800 PreteethAIPro[8527:585089] [Purchases] - DEBUG: ℹ️ Serial request done: POST subscribers/identify, 0 requests left in the queue
2022-09-02 15:02:11.415137+0800 PreteethAIPro[8527:584505] json = {"created":false,"customerInfo":{"allExpirationDatesMillis":{"com.preteethai.dentist.subscription.monthly":1662065629000,"com.preteethai.dentist.subscription.pro":1660673681000,"com.preteethai.dentist.subscription.month":1661325054000},"allPurchaseDates":{"com.preteethai.dentist.subscription.pro":"2022-08-16T18:09:41Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:05:54Z","com.preteethai.dentist.subscription.monthly":"2022-09-01T20:48:49Z"},"firstSeen":"2022-09-01T04:16:22Z","requestDateMillis":1662102131000,"originalPurchaseDate":"2013-08-01T07:00:00Z","requestDate":"2022-09-02T07:02:11Z","originalApplicationVersion":"1.0","allPurchasedProductIdentifiers":["com.preteethai.dentist.subscription.pro","com.preteethai.dentist.subscription.monthly","com.preteethai.dentist.subscription.month"],"originalAppUserId":"$RCAnonymousID:e3b37ae862c941febc374494917cc0b0","latestExpirationDate":"2022-09-01T20:53:49Z","allPurchaseDatesMillis":{"com.preteethai.dentist.subscription.pro":1660673381000,"com.preteethai.dentist.subscription.monthly":1662065329000,"com.preteethai.dentist.subscription.month":1661324754000},"latestExpirationDateMillis":1662065629000,"entitlements":{"all":{"pro":{"originalPurchaseDate":"2022-08-31T14:01:28Z","latestPurchaseDateMillis":1662065329000,"expirationDate":"2022-09-01T20:53:49Z","store":"APP_STORE","billingIssueDetectedAtMillis":null,"productIdentifier":"com.preteethai.dentist.subscription.monthly","identifier":"pro","latestPurchaseDate":"2022-09-01T20:48:49Z","isActive":false,"periodType":"NORMAL","isSandbox":true,"billingIssueDetectedAt":null,"willRenew":false,"expirationDateMillis":1662065629000,"unsubscribedDetectedAt":"2022-09-01T20:54:01Z","ownershipType":"PURCHASED","unsubscribedDetectedAtMillis":1662065641000,"originalPurchaseDateMillis":1661954488000}},"active":{}},"activeSubscriptions":[],"firstSeenMillis":1662005782000,"originalPurchaseDateMillis":1375340400000,"nonSubscriptionTransactions":[],"allExpirationDates":{"com.preteethai.dentist.subscription.monthly":"2022-09-01T20:53:49Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:14:41Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:10:54Z"},"managementURL":null}}
2022-09-02 15:02:11.415963+0800 PreteethAIPro[8527:585089] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Started
2022-09-02 15:02:11.416045+0800 PreteethAIPro[8527:585089] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/v0kpCeNMD0UsHZIFNyDZW5uUc0x1/offerings
2022-09-02 15:02:11.417677+0800 PreteethAIPro[8527:585089] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/v0kpCeNMD0UsHZIFNyDZW5uUc0x1/offerings
_logIn {"created":false,"customerInfo":{"allExpirationDatesMillis":{"com.preteethai.dentist.subscription.monthly":1662065629000,"com.preteethai.dentist.subscription.pro":1660673681000,"com.preteethai.dentist.subscription.month":1661325054000},"allPurchaseDates":{"com.preteethai.dentist.subscription.pro":"2022-08-16T18:09:41Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:05:54Z","com.preteethai.dentist.subscription.monthly":"2022-09-01T20:48:49Z"},"firstSeen":"2022-09-01T04:16:22Z","requestDateMillis":1662102131000,"originalPurchaseDate":"2013-08-01T07:00:00Z","requestDate":"2022-09-02T07:02:11Z","originalApplicationVersion":"1.0","allPurchasedProductIdentifiers":["com.preteethai.dentist.subscription.pro","com.preteethai.dentist.subscription.monthly","com.preteethai.dentist.subscription.month"],"originalAppUserId":"$RCAnonymousID:e3b37ae862c941febc374494917cc0b0","latestExpirationDate":"2022-09-01T20:53:49Z","allPurchaseDatesMillis":{"com.preteethai.dentist.subscription.pro":1660673381000,"com.preteethai.dentist.subscription.monthly":1662065329000,"com.preteethai.dentist.subscription.month":1661324754000},"latestExpirationDateMillis":1662065629000,"entitlements":{"all":{"pro":{"originalPurchaseDate":"2022-08-31T14:01:28Z","latestPurchaseDateMillis":1662065329000,"expirationDate":"2022-09-01T20:53:49Z","store":"APP_STORE","billingIssueDetectedAtMillis":null,"productIdentifier":"com.preteethai.dentist.subscription.monthly","identifier":"pro","latestPurchaseDate":"2022-09-01T20:48:49Z","isActive":false,"periodType":"NORMAL","isSandbox":true,"billingIssueDetectedAt":null,"willRenew":false,"expirationDateMillis":1662065629000,"unsubscribedDetectedAt":"2022-09-01T20:54:01Z","ownershipType":"PURCHASED","unsubscribedDetectedAtMillis":1662065641000,"originalPurchaseDateMillis":1661954488000}},"active":{}},"activeSubscriptions":[],"firstSeenMillis":1662005782000,"originalPurchaseDateMillis":1375340400000,"nonSubscriptionTransactions":[],"allExpirationDates":{"com.preteethai.dentist.subscription.monthly":"2022-09-01T20:53:49Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:14:41Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:10:54Z"},"managementURL":null}}
Purchases:_logIn(String)
Updated UI: isSubscribed = false
RevenueCatPurchaseManager:UpdateUI()
RevenueCatPurchaseManager:<LogIn>b__19_0(CustomerInfo, Boolean, Error)
LogInFunc:Invoke(CustomerInfo, Boolean, Error)
Purchases:_logIn(String)
2022-09-02 15:02:11.685750+0800 PreteethAIPro[8527:585090] [Purchases] - DEBUG: ℹ️ API request completed: GET /v1/subscribers/v0kpCeNMD0UsHZIFNyDZW5uUc0x1/offerings 200
2022-09-02 15:02:11.693256+0800 PreteethAIPro[8527:585090] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Finished
2022-09-02 15:02:11.693660+0800 PreteethAIPro[8527:584991] [Purchases] - DEBUG: ℹ️ Skipping products request because products were already cached. products: ["com.preteethai.dentist.subscription.monthly", "com.preteethai.dentist.subscription.annual"]
2022-09-02 15:02:11.693850+0800 PreteethAIPro[8527:585090] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/v0kpCeNMD0UsHZIFNyDZW5uUc0x1/offerings, 0 requests left in the queue
2022-09-02 15:02:30.014053+0800 PreteethAIPro[8527:584505] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2022-09-02 15:02:39.338844+0800 PreteethAIPro[8527:584505] [Purchases] - DEBUG: ℹ️ Vending Offerings from cache
2022-09-02 15:02:39.339170+0800 PreteethAIPro[8527:584505] [Purchases] - INFO: 💰 Purchasing Product 'com.preteethai.dentist.subscription.monthly' from package in Offering 'default'
2022-09-02 15:02:39.356072+0800 PreteethAIPro[8527:584505] [Purchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: com.preteethai.dentist.subscription.monthly 0
2022-09-02 15:02:39.356276+0800 PreteethAIPro[8527:584505] [Purchases] - WARN: 🍎‼️ There is a problem with the SKPaymentTransaction missing a transaction date - this is an issue with the App Store. Unix Epoch will be used instead.
Transactions in the backend and in webhooks are unaffected and will have the correct timestamps. This is a bug in StoreKit 1. To prevent running into this issue on devices running iOS 15+, watchOS 8+, macOS 12+, and tvOS 15+, you can set `usesStoreKit2IfAvailable` to true when calling `configure`.
2022-09-02 15:02:39.356392+0800 PreteethAIPro[8527:584505] [Purchases] - WARN: 🍎‼️ There is a problem with the SKPaymentTransaction missing a transaction identifier - this is an issue with the App Store.Transactions in the backend and in webhooks are unaffected and will have the correct identifier. This is a bug in StoreKit 1. To prevent running into this issue on devices running iOS 15+, watchOS 8+, macOS 12+, and tvOS 15+, you can set `usesStoreKit2IfAvailable` to true when calling `configure`.
2022-09-02 15:02:41.991024+0800 PreteethAIPro[8527:585090] [tcp] tcp_input [C2.1.1:3] flags=[R] seq=770651323, ack=0, win=0 state=LAST_ACK rcv_nxt=770651323, snd_una=145395136
2022-09-02 15:02:41.992037+0800 PreteethAIPro[8527:585090] [tcp] tcp_input [C2.1.1:3] flags=[R] seq=770651323, ack=0, win=0 state=CLOSED rcv_nxt=770651323, snd_una=145395136
-> applicationWillResignActive()
-> applicationDidBecomeActive()
2022-09-02 15:03:08.034896+0800 PreteethAIPro[8527:584505] [Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
-> applicationWillResignActive()
-> applicationDidBecomeActive()
2022-09-02 15:03:20.394589+0800 PreteethAIPro[8527:584505] [Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
2022-09-02 15:03:20.558321+0800 PreteethAIPro[8527:584505] [Purchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: com.preteethai.dentist.subscription.monthly 2000000144938720 2000000143341334 1
2022-09-02 15:03:20.559361+0800 PreteethAIPro[8527:584505] [Purchases] - DEBUG: ℹ️ Force refreshing the receipt to get latest transactions from Apple.
2022-09-02 15:03:22.177476+0800 PreteethAIPro[8527:585552] [Purchases] - DEBUG: ℹ️ Loaded receipt from url file:///private/var/mobile/Containers/Data/Application/DED4A1FD-D7DC-439E-B212-40B66F9BB70B/StoreKit/sandboxReceipt
2022-09-02 15:03:22.177612+0800 PreteethAIPro[8527:585344] [Purchases] - DEBUG: ℹ️ Skipping products request because products were already cached. products: ["com.preteethai.dentist.subscription.monthly"]
2022-09-02 15:03:22.177876+0800 PreteethAIPro[8527:584505] [Purchases] - DEBUG: ℹ️ Found 0 unsynced attributes for App User ID: v0kpCeNMD0UsHZIFNyDZW5uUc0x1
2022-09-02 15:03:22.188387+0800 PreteethAIPro[8527:585344] [Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Started
2022-09-02 15:03:22.188455+0800 PreteethAIPro[8527:585344] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST receipts
2022-09-02 15:03:22.190839+0800 PreteethAIPro[8527:585344] [Purchases] - DEBUG: ℹ️ API request started: POST /v1/receipts
2022-09-02 15:03:24.999318+0800 PreteethAIPro[8527:585344] [Purchases] - DEBUG: ℹ️ API request completed: POST /v1/receipts 200
2022-09-02 15:03:25.024815+0800 PreteethAIPro[8527:585344] [Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Finished
2022-09-02 15:03:25.025304+0800 PreteethAIPro[8527:585344] [Purchases] - DEBUG: ℹ️ Serial request done: POST receipts, 0 requests left in the queue
2022-09-02 15:03:25.030774+0800 PreteethAIPro[8527:584505] [Purchases] - DEBUG: ℹ️ Sending updated CustomerInfo to delegate.
2022-09-02 15:03:25.031144+0800 PreteethAIPro[8527:584505] [Purchases] - INFO: 😻💰 Purchased product - 'com.preteethai.dentist.subscription.monthly'
2022-09-02 15:03:25.031974+0800 PreteethAIPro[8527:584505] json = {"productIdentifier":"com.preteethai.dentist.subscription.monthly","userCancelled":false,"customerInfo":{"originalPurchaseDateMillis":1375340400000,"latestExpirationDate":"2022-09-02T07:08:11Z","activeSubscriptions":["com.preteethai.dentist.subscription.monthly"],"firstSeen":"2022-09-01T04:16:22Z","allExpirationDates":{"com.preteethai.dentist.subscription.month":"2022-08-24T07:10:54Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:14:41Z","com.preteethai.dentist.subscription.monthly":"2022-09-02T07:08:11Z"},"managementURL":"https:\/\/apps.apple.com\/account\/subscriptions","requestDate":"2022-09-02T07:03:24Z","originalApplicationVersion":"1.0","allPurchaseDates":{"com.preteethai.dentist.subscription.pro":"2022-08-16T18:09:41Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:05:54Z","com.preteethai.dentist.subscription.monthly":"2022-09-02T07:03:11Z"},"allPurchasedProductIdentifiers":["com.preteethai.dentist.subscription.monthly","com.preteethai.dentist.subscription.pro","com.preteethai.dentist.subscription.month"],"allPurchaseDatesMillis":{"com.preteethai.dentist.subscription.month":1661324754000,"com.preteethai.dentist.subscription.monthly":1662102191000,"com.preteethai.dentist.subscription.pro":1660673381000},"nonSubscriptionTransactions":[],"requestDateMillis":1662102204000,"entitlements":{"all":{"pro":{"productIdentifier":"com.preteethai.dentist.subscription.monthly","periodType":"NORMAL","latestPurchaseDate":"2022-09-02T07:03:11Z","originalPurchaseDate":"2022-08-31T14:01:28Z","store":"APP_STORE","unsubscribedDetectedAt":null,"originalPurchaseDateMillis":1661954488000,"latestPurchaseDateMillis":1662102191000,"expirationDateMillis":1662102491000,"willRenew":true,"expirationDate":"2022-09-02T07:08:11Z","billingIssueDetectedAt":null,"isSandbox":true,"unsubscribedDetectedAtMillis":null,"billingIssueDetectedAtMillis":null,"ownershipType":"PURCHASED","identifier":"pro","isActive":true}},"active":{"pro":{"isActive":true,"latestPurchaseDateMillis":1662102191000,"periodType":"NORMAL","willRenew":true,"unsubscribedDetectedAtMillis":null,"originalPurchaseDateMillis":1661954488000,"expirationDateMillis":1662102491000,"identifier":"pro","productIdentifier":"com.preteethai.dentist.subscription.monthly","unsubscribedDetectedAt":null,"ownershipType":"PURCHASED","originalPurchaseDate":"2022-08-31T14:01:28Z","store":"APP_STORE","isSandbox":true,"latestPurchaseDate":"2022-09-02T07:03:11Z","billingIssueDetectedAt":null,"billingIssueDetectedAtMillis":null,"expirationDate":"2022-09-02T07:08:11Z"}}},"firstSeenMillis":1662005782000,"originalPurchaseDate":"2013-08-01T07:00:00Z","latestExpirationDateMillis":1662102491000,"originalAppUserId":"$RCAnonymousID:e3b37ae862c941febc374494917cc0b0","allExpirationDatesMillis":{"com.preteethai.dentist.subscription.monthly":1662102491000,"com.preteethai.dentist.subscription.pro":1660673681000,"com.preteethai.dentist.subscription.month":1661325054000}}}
2022-09-02 15:03:25.032486+0800 PreteethAIPro[8527:584505] [Purchases] - INFO: 💰 Finishing transaction com.preteethai.dentist.subscription.monthly 2000000144938720 (2000000143341334)
_makePurchase {"productIdentifier":"com.preteethai.dentist.subscription.monthly","userCancelled":false,"customerInfo":{"originalPurchaseDateMillis":1375340400000,"latestExpirationDate":"2022-09-02T07:08:11Z","activeSubscriptions":["com.preteethai.dentist.subscription.monthly"],"firstSeen":"2022-09-01T04:16:22Z","allExpirationDates":{"com.preteethai.dentist.subscription.month":"2022-08-24T07:10:54Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:14:41Z","com.preteethai.dentist.subscription.monthly":"2022-09-02T07:08:11Z"},"managementURL":"https:\/\/apps.apple.com\/account\/subscriptions","requestDate":"2022-09-02T07:03:24Z","originalApplicationVersion":"1.0","allPurchaseDates":{"com.preteethai.dentist.subscription.pro":"2022-08-16T18:09:41Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:05:54Z","com.preteethai.dentist.subscription.monthly":"2022-09-02T07:03:11Z"},"allPurchasedProductIdentifiers":["com.preteethai.dentist.subscription.monthly","com.preteethai.dentist.subscription.pro","com.preteethai.dentist.subscription.month"],"allPurchaseDatesMillis":{"com.preteethai.dentist.subscription.month":1661324754000,"com.preteethai.dentist.subscription.monthly":1662102191000,"com.preteethai.dentist.subscription.pro":1660673381000},"nonSubscriptionTransactions":[],"requestDateMillis":1662102204000,"entitlements":{"all":{"pro":{"productIdentifier":"com.preteethai.dentist.subscription.monthly","periodType":"NORMAL","latestPurchaseDate":"2022-09-02T07:03:11Z","originalPurchaseDate":"2022-08-31T14:01:28Z","store":"APP_STORE","unsubscribedDetectedAt":null,"originalPurchaseDateMillis":1661954488000,"latestPurchaseDateMillis":1662102191000,"expirationDateMillis":1662102491000,"willRenew":true,"expirationDate":"2022-09-02T07:08:11Z","billingIssueDetectedAt":null,"isSandbox":true,"unsubscribedDetectedAtMillis":null,"billingIssueDetectedAtMillis":null,"ownershipType":"PURCHASED","identifier":"pro","isActive":true}},"active":{"pro":{"isActive":true,"latestPurchaseDateMillis":1662102191000,"periodType":"NORMAL","willRenew":true,"unsubscribedDetectedAtMillis":null,"originalPurchaseDateMillis":1661954488000,"expirationDateMillis":1662102491000,"identifier":"pro","productIdentifier":"com.preteethai.dentist.subscription.monthly","unsubscribedDetectedAt":null,"ownershipType":"PURCHASED","originalPurchaseDate":"2022-08-31T14:01:28Z","store":"APP_STORE","isSandbox":true,"latestPurchaseDate":"2022-09-02T07:03:11Z","billingIssueDetectedAt":null,"billingIssueDetectedAtMillis":null,"expirationDate":"2022-09-02T07:08:11Z"}}},"firstSeenMillis":1662005782000,"originalPurchaseDate":"2013-08-01T07:00:00Z","latestExpirationDateMillis":1662102491000,"originalAppUserId":"$RCAnonymousID:e3b37ae862c941febc374494917cc0b0","allExpirationDatesMillis":{"com.preteethai.dentist.subscription.monthly":1662102491000,"com.preteethai.dentist.subscription.pro":1660673681000,"com.preteethai.dentist.subscription.month":1661325054000}}}
Purchases:_makePurchase(String)
Finished purchase com.preteethai.dentist.subscription.monthly!
RevenueCatPurchaseManager:<BeginPurchase>b__25_0(String, CustomerInfo, Boolean, Error)
MakePurchaseFunc:Invoke(String, CustomerInfo, Boolean, Error)
Purchases:_makePurchase(String)
Updated UI: isSubscribed = true
RevenueCatPurchaseManager:UpdateUI()
MakePurchaseFunc:Invoke(String, CustomerInfo, Boolean, Error)
Purchases:_makePurchase(String)
2022-09-02 15:03:26.352222+0800 PreteethAIPro[8527:584505] [Purchases] - DEBUG: ℹ️ PaymentQueue removedTransaction: com.preteethai.dentist.subscription.monthly 2000000144938720 2000000143341334 1
- (2) This is from the resubscription:
Got all offerings!
RevenueCatPurchaseManager:InitializePurchases()
2022-09-02 15:51:09.439711+0800 PreteethAIPro[8912:601870] [Purchases] - DEBUG: ℹ️ Vending Offerings from cache
2022-09-02 15:51:09.440008+0800 PreteethAIPro[8912:601870] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:51:09.440218+0800 PreteethAIPro[8912:601870] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:51:09.440379+0800 PreteethAIPro[8912:601870] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:51:09.440506+0800 PreteethAIPro[8912:601870] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:51:09.440649+0800 PreteethAIPro[8912:601870] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:51:09.440776+0800 PreteethAIPro[8912:601870] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:51:09.440884+0800 PreteethAIPro[8912:601870] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:51:09.440993+0800 PreteethAIPro[8912:601870] [Purchases] - WARN: ⚠️ This StoreProduct represents an SK1 product, the type of product cannot be determined, the value will be undefined. Use `StoreProduct.productCategory` instead.
2022-09-02 15:51:09.441342+0800 PreteethAIPro[8912:601870] json = {"offerings":{"current":{"annual":{"identifier":"$rc_annual","packageType":"ANNUAL","offeringIdentifier":"default","product":{"currencyCode":"TWD","identifier":"com.preteethai.dentist.subscription.annual","productCategory":"SUBSCRIPTION","introPrice":{"cycles":1,"price":0,"periodNumberOfUnits":1,"periodUnit":"MONTH","priceString":"$0.00","period":"P1M"},"description":"Preteeth AI Pro Annual","price":15900,"productType":"NON_CONSUMABLE","discounts":[],"priceString":"$15,900.00","title":"Preteeth AI Pro Annual"}},"serverDescription":"The standard set of packages","availablePackages":[{"identifier":"$rc_annual","product":{"price":15900,"priceString":"$15,900.00","currencyCode":"TWD","discounts":[],"identifier":"com.preteethai.dentist.subscription.annual","description":"Preteeth AI Pro Annual","productCategory":"SUBSCRIPTION","productType":"NON_CONSUMABLE","title":"Preteeth AI Pro Annual","introPrice":{"priceString":"$0.00","cycles":1,"period":"P1M","price":0,"periodUnit":"MONTH","periodNumberOfUnits":1}},"offeringIdentifier":"default","packageType":"ANNUAL"},{"offeringIdentifier":"default","packageType":"MONTHLY","identifier":"$rc_monthly","product":{"title":"Preteeth AI Pro Monthly","productType":"NON_CONSUMABLE","identifier":"com.preteethai.dentist.subscription.monthly","priceString":"$3,290.00","description":"Preteeth AI Pro Monthly","currencyCode":"TWD","productCategory":"SUBSCRIPTION","discounts":[],"introPrice":{"periodNumberOfUnits":1,"cycles":1,"priceString":"$0.00","price":0,"period":"P1M","periodUnit":"MONTH"},"price":3290}}],"identifier":"default","monthly":{"identifier":"$rc_monthly","product":{"price":3290,"productType":"NON_CONSUMABLE","title":"Preteeth AI Pro Monthly","discounts":[],"description":"Preteeth AI Pro Monthly","introPrice":{"priceString":"$0.00","period":"P1M","periodUnit":"MONTH","price":0,"periodNumberOfUnits":1,"cycles":1},"priceString":"$3,290.00","currencyCode":"TWD","productCategory":"SUBSCRIPTION","identifier":"com.preteethai.dentist.subscription.monthly"},"offeringIdentifier":"default","packageType":"MONTHLY"}},"all":{"default":{"annual":{"product":{"title":"Preteeth AI Pro Annual","productCategory":"SUBSCRIPTION","currencyCode":"TWD","description":"Preteeth AI Pro Annual","introPrice":{"period":"P1M","cycles":1,"price":0,"periodUnit":"MONTH","periodNumberOfUnits":1,"priceString":"$0.00"},"productType":"NON_CONSUMABLE","price":15900,"identifier":"com.preteethai.dentist.subscription.annual","discounts":[],"priceString":"$15,900.00"},"offeringIdentifier":"default","packageType":"ANNUAL","identifier":"$rc_annual"},"identifier":"default","availablePackages":[{"identifier":"$rc_annual","packageType":"ANNUAL","offeringIdentifier":"default","product":{"identifier":"com.preteethai.dentist.subscription.annual","introPrice":{"priceString":"$0.00","periodNumberOfUnits":1,"periodUnit":"MONTH","period":"P1M","cycles":1,"price":0},"price":15900,"description":"Preteeth AI Pro Annual","productType":"NON_CONSUMABLE","title":"Preteeth AI Pro Annual","productCategory":"SUBSCRIPTION","priceString":"$15,900.00","currencyCode":"TWD","discounts":[]}},{"packageType":"MONTHLY","product":{"productType":"NON_CONSUMABLE","priceString":"$3,290.00","currencyCode":"TWD","introPrice":{"cycles":1,"period":"P1M","periodNumberOfUnits":1,"periodUnit":"MONTH","price":0,"priceString":"$0.00"},"productCategory":"SUBSCRIPTION","title":"Preteeth AI Pro Monthly","identifier":"com.preteethai.dentist.subscription.monthly","description":"Preteeth AI Pro Monthly","price":3290,"discounts":[]},"identifier":"$rc_monthly","offeringIdentifier":"default"}],"monthly":{"identifier":"$rc_monthly","packageType":"MONTHLY","product":{"title":"Preteeth AI Pro Monthly","discounts":[],"identifier":"com.preteethai.dentist.subscription.monthly","priceString":"$3,290.00","price":3290,"introPrice":{"price":0,"periodNumberOfUnits":1,"periodUnit":"MONTH","priceString":"$0.00","period":"P1M","cycles":1},"productCategory":"SUBSCRIPTION","currencyCode":"TWD","description":"Preteeth AI Pro Monthly","productType":"NON_CONSUMABLE"},"offeringIdentifier":"default"},"serverDescription":"The standard set of packages"}}}}
_getOfferings {"offerings":{"current":{"annual":{"identifier":"$rc_annual","packageType":"ANNUAL","offeringIdentifier":"default","product":{"currencyCode":"TWD","identifier":"com.preteethai.dentist.subscription.annual","productCategory":"SUBSCRIPTION","introPrice":{"cycles":1,"price":0,"periodNumberOfUnits":1,"periodUnit":"MONTH","priceString":"$0.00","period":"P1M"},"description":"Preteeth AI Pro Annual","price":15900,"productType":"NON_CONSUMABLE","discounts":[],"priceString":"$15,900.00","title":"Preteeth AI Pro Annual"}},"serverDescription":"The standard set of packages","availablePackages":[{"identifier":"$rc_annual","product":{"price":15900,"priceString":"$15,900.00","currencyCode":"TWD","discounts":[],"identifier":"com.preteethai.dentist.subscription.annual","description":"Preteeth AI Pro Annual","productCategory":"SUBSCRIPTION","productType":"NON_CONSUMABLE","title":"Preteeth AI Pro Annual","introPrice":{"priceString":"$0.00","cycles":1,"period":"P1M","price":0,"periodUnit":"MONTH","periodNumberOfUnits":1}},"offeringIdentifier":"default","packageType":"ANNUAL"},{"offeringIdentifier":"default","packageType":"MONTHLY","identifier":"$rc_monthly","product":{"title":"Preteeth AI Pro Monthly","productType":"NON_CONSUMABLE","identifier":"com.preteethai.dentist.subscription.monthly","priceString":"$3,290.00","description":"Preteeth AI Pro Monthly","currencyCode":"TWD","productCategory":"SUBSCRIPTION","discounts":[],"introPrice":{"periodNumberOfUnits":1,"cycles":1,"priceString":"$0.00","price":0,"period":"P1M","periodUnit":"MONTH"},"price":3290}}],"identifier":"default","monthly":{"identifier":"$rc_monthly","product":{"price":3290,"productType":"NON_CONSUMABLE","title":"Preteeth AI Pro Monthly","discounts":[],"description":"Preteeth AI Pro Monthly","introPrice":{"priceString":"$0.00","period":"P1M","periodUnit":"MONTH","price":0,"periodNumberOfUnits":1,"cycles":1},"priceString":"$3,290.00","currencyCode":"TWD","productCategory":"SUBSCRIPTION","identifier":"com.preteethai.dentist.subscription.monthly"},"offeringIdentifier":"default","packageType":"MONTHLY"}},"all":{"default":{"annual":{"product":{"title":"Preteeth AI Pro Annual","productCategory":"SUBSCRIPTION","currencyCode":"TWD","description":"Preteeth AI Pro Annual","introPrice":{"period":"P1M","cycles":1,"price":0,"periodUnit":"MONTH","periodNumberOfUnits":1,"priceString":"$0.00"},"productType":"NON_CONSUMABLE","price":15900,"identifier":"com.preteethai.dentist.subscription.annual","discounts":[],"priceString":"$15,900.00"},"offeringIdentifier":"default","packageType":"ANNUAL","identifier":"$rc_annual"},"identifier":"default","availablePackages":[{"identifier":"$rc_annual","packageType":"ANNUAL","offeringIdentifier":"default","product":{"identifier":"com.preteethai.dentist.subscription.annual","introPrice":{"priceString":"$0.00","periodNumberOfUnits":1,"periodUnit":"MONTH","period":"P1M","cycles":1,"price":0},"price":15900,"description":"Preteeth AI Pro Annual","productType":"NON_CONSUMABLE","title":"Preteeth AI Pro Annual","productCategory":"SUBSCRIPTION","priceString":"$15,900.00","currencyCode":"TWD","discounts":[]}},{"packageType":"MONTHLY","product":{"productType":"NON_CONSUMABLE","priceString":"$3,290.00","currencyCode":"TWD","introPrice":{"cycles":1,"period":"P1M","periodNumberOfUnits":1,"periodUnit":"MONTH","price":0,"priceString":"$0.00"},"productCategory":"SUBSCRIPTION","title":"Preteeth AI Pro Monthly","identifier":"com.preteethai.dentist.subscription.monthly","description":"Preteeth AI Pro Monthly","price":3290,"discounts":[]},"identifier":"$rc_monthly","offeringIdentifier":"default"}],"monthly":{"identifier":"$rc_monthly","packageType":"MONTHLY","product":{"title":"Preteeth AI Pro Monthly","discounts":[],"identifier":"com.preteethai.dentist.subscription.monthly","priceString":"$3,290.00","price":3290,"introPrice":{"price":0,"periodNumberOfUnits":1,"periodUnit":"MONTH","priceString":"$0.00","period":"P1M","cycles":1},"productCategory":"SUBSCRIPTION","currencyCode":"TWD","description":"Preteeth AI Pro Monthly","productType":"NON_CONSUMABLE"},"offeringIdentifier":"default"},"serverDescription":"The standard set of packages"}}}}
Purchases:_getOfferings(String)
Purchases GetOfferings succeeded!
RevenueCatPurchaseManager:<GetOfferingsAndSetIsSubscribedAndLogIn>b__17_0(Offerings, Error)
GetOfferingsFunc:Invoke(Offerings, Error)
Purchases:_getOfferings(String)
2022-09-02 15:51:09.449966+0800 PreteethAIPro[8912:601870] [Purchases] - DEBUG: ℹ️ Vending CustomerInfo from cache.
2022-09-02 15:51:09.450790+0800 PreteethAIPro[8912:601870] json = {"customerInfo":{"firstSeen":"2022-09-01T04:16:22Z","originalPurchaseDate":"2013-08-01T07:00:00Z","originalApplicationVersion":"1.0","nonSubscriptionTransactions":[],"requestDate":"2022-09-02T07:50:21Z","allExpirationDatesMillis":{"com.preteethai.dentist.subscription.monthly":1662105008000,"com.preteethai.dentist.subscription.month":1661325054000,"com.preteethai.dentist.subscription.pro":1660673681000},"allPurchasedProductIdentifiers":["com.preteethai.dentist.subscription.month","com.preteethai.dentist.subscription.monthly","com.preteethai.dentist.subscription.pro"],"originalAppUserId":"$RCAnonymousID:e3b37ae862c941febc374494917cc0b0","activeSubscriptions":[],"allPurchaseDates":{"com.preteethai.dentist.subscription.month":"2022-08-24T07:05:54Z","com.preteethai.dentist.subscription.monthly":"2022-09-02T07:45:08Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:09:41Z"},"firstSeenMillis":1662005782000,"originalPurchaseDateMillis":1375340400000,"requestDateMillis":1662105021000,"latestExpirationDateMillis":1662105008000,"entitlements":{"active":{},"all":{"pro":{"expirationDate":"2022-09-02T07:50:08Z","expirationDateMillis":1662105008000,"originalPurchaseDateMillis":1661954488000,"ownershipType":"PURCHASED","latestPurchaseDate":"2022-09-02T07:45:08Z","unsubscribedDetectedAt":"2022-09-02T07:45:00Z","billingIssueDetectedAtMillis":null,"billingIssueDetectedAt":null,"productIdentifier":"com.preteethai.dentist.subscription.monthly","willRenew":false,"store":"APP_STORE","isSandbox":true,"latestPurchaseDateMillis":1662104708000,"periodType":"NORMAL","isActive":false,"unsubscribedDetectedAtMillis":1662104700000,"identifier":"pro","originalPurchaseDate":"2022-08-31T14:01:28Z"}}},"latestExpirationDate":"2022-09-02T07:50:08Z","allExpirationDates":{"com.preteethai.dentist.subscription.monthly":"2022-09-02T07:50:08Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:10:54Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:14:41Z"},"allPurchaseDatesMillis":{"com.preteethai.dentist.subscription.month":1661324754000,"com.preteethai.dentist.subscription.monthly":1662104708000,"com.preteethai.dentist.subscription.pro":1660673381000},"managementURL":null}}
_getCustomerInfo {"customerInfo":{"firstSeen":"2022-09-01T04:16:22Z","originalPurchaseDate":"2013-08-01T07:00:00Z","originalApplicationVersion":"1.0","nonSubscriptionTransactions":[],"requestDate":"2022-09-02T07:50:21Z","allExpirationDatesMillis":{"com.preteethai.dentist.subscription.monthly":1662105008000,"com.preteethai.dentist.subscription.month":1661325054000,"com.preteethai.dentist.subscription.pro":1660673681000},"allPurchasedProductIdentifiers":["com.preteethai.dentist.subscription.month","com.preteethai.dentist.subscription.monthly","com.preteethai.dentist.subscription.pro"],"originalAppUserId":"$RCAnonymousID:e3b37ae862c941febc374494917cc0b0","activeSubscriptions":[],"allPurchaseDates":{"com.preteethai.dentist.subscription.month":"2022-08-24T07:05:54Z","com.preteethai.dentist.subscription.monthly":"2022-09-02T07:45:08Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:09:41Z"},"firstSeenMillis":1662005782000,"originalPurchaseDateMillis":1375340400000,"requestDateMillis":1662105021000,"latestExpirationDateMillis":1662105008000,"entitlements":{"active":{},"all":{"pro":{"expirationDate":"2022-09-02T07:50:08Z","expirationDateMillis":1662105008000,"originalPurchaseDateMillis":1661954488000,"ownershipType":"PURCHASED","latestPurchaseDate":"2022-09-02T07:45:08Z","unsubscribedDetectedAt":"2022-09-02T07:45:00Z","billingIssueDetectedAtMillis":null,"billingIssueDetectedAt":null,"productIdentifier":"com.preteethai.dentist.subscription.monthly","willRenew":false,"store":"APP_STORE","isSandbox":true,"latestPurchaseDateMillis":1662104708000,"periodType":"NORMAL","isActive":false,"unsubscribedDetectedAtMillis":1662104700000,"identifier":"pro","originalPurchaseDate":"2022-08-31T14:01:28Z"}}},"latestExpirationDate":"2022-09-02T07:50:08Z","allExpirationDates":{"com.preteethai.dentist.subscription.monthly":"2022-09-02T07:50:08Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:10:54Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:14:41Z"},"allPurchaseDatesMillis":{"com.preteethai.dentist.subscription.month":1661324754000,"com.preteethai.dentist.subscription.monthly":1662104708000,"com.preteethai.dentist.subscription.pro":1660673381000},"managementURL":null}}
Purchases:_getCustomerInfo(String)
2022-09-02 15:51:09.455865+0800 PreteethAIPro[8912:602178] [Purchases] - WARN: ⚠️ The appUserID passed to logIn is the same as the one already cached. No action will be taken.
2022-09-02 15:51:09.458551+0800 PreteethAIPro[8912:602178] [Purchases] - DEBUG: ℹ️ Vending CustomerInfo from cache.
2022-09-02 15:51:09.458830+0800 PreteethAIPro[8912:601870] json = {"created":false,"customerInfo":{"latestExpirationDateMillis":1662105008000,"allPurchaseDates":{"com.preteethai.dentist.subscription.pro":"2022-08-16T18:09:41Z","com.preteethai.dentist.subscription.monthly":"2022-09-02T07:45:08Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:05:54Z"},"originalPurchaseDate":"2013-08-01T07:00:00Z","entitlements":{"all":{"pro":{"periodType":"NORMAL","latestPurchaseDate":"2022-09-02T07:45:08Z","originalPurchaseDateMillis":1661954488000,"ownershipType":"PURCHASED","store":"APP_STORE","isSandbox":true,"unsubscribedDetectedAt":"2022-09-02T07:45:00Z","billingIssueDetectedAt":null,"unsubscribedDetectedAtMillis":1662104700000,"expirationDate":"2022-09-02T07:50:08Z","billingIssueDetectedAtMillis":null,"willRenew":false,"latestPurchaseDateMillis":1662104708000,"originalPurchaseDate":"2022-08-31T14:01:28Z","expirationDateMillis":1662105008000,"identifier":"pro","productIdentifier":"com.preteethai.dentist.subscription.monthly","isActive":false}},"active":{}},"originalPurchaseDateMillis":1375340400000,"nonSubscriptionTransactions":[],"firstSeenMillis":1662005782000,"originalAppUserId":"$RCAnonymousID:e3b37ae862c941febc374494917cc0b0","activeSubscriptions":[],"managementURL":null,"requestDate":"2022-09-02T07:50:21Z","allPurchasedProductIdentifiers":["com.preteethai.dentist.subscription.month","com.preteethai.dentist.subscription.monthly","com.preteethai.dentist.subscription.pro"],"latestExpirationDate":"2022-09-02T07:50:08Z","firstSeen":"2022-09-01T04:16:22Z","allPurchaseDatesMillis":{"com.preteethai.dentist.subscription.pro":1660673381000,"com.preteethai.dentist.subscription.month":1661324754000,"com.preteethai.dentist.subscription.monthly":1662104708000},"originalApplicationVersion":"1.0","allExpirationDatesMillis":{"com.preteethai.dentist.subscription.pro":1660673681000,"com.preteethai.dentist.subscription.monthly":1662105008000,"com.preteethai.dentist.subscription.month":1661325054000},"requestDateMillis":1662105021000,"allExpirationDates":{"com.preteethai.dentist.subscription.month":"2022-08-24T07:10:54Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:14:41Z","com.preteethai.dentist.subscription.monthly":"2022-09-02T07:50:08Z"}}}
2022-09-02 15:51:09.459761+0800 PreteethAIPro[8912:602178] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Started
2022-09-02 15:51:09.459816+0800 PreteethAIPro[8912:602178] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request GET subscribers/v0kpCeNMD0UsHZIFNyDZW5uUc0x1/offerings
2022-09-02 15:51:09.460579+0800 PreteethAIPro[8912:602178] [Purchases] - DEBUG: ℹ️ API request started: GET /v1/subscribers/v0kpCeNMD0UsHZIFNyDZW5uUc0x1/offerings
_logIn {"created":false,"customerInfo":{"latestExpirationDateMillis":1662105008000,"allPurchaseDates":{"com.preteethai.dentist.subscription.pro":"2022-08-16T18:09:41Z","com.preteethai.dentist.subscription.monthly":"2022-09-02T07:45:08Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:05:54Z"},"originalPurchaseDate":"2013-08-01T07:00:00Z","entitlements":{"all":{"pro":{"periodType":"NORMAL","latestPurchaseDate":"2022-09-02T07:45:08Z","originalPurchaseDateMillis":1661954488000,"ownershipType":"PURCHASED","store":"APP_STORE","isSandbox":true,"unsubscribedDetectedAt":"2022-09-02T07:45:00Z","billingIssueDetectedAt":null,"unsubscribedDetectedAtMillis":1662104700000,"expirationDate":"2022-09-02T07:50:08Z","billingIssueDetectedAtMillis":null,"willRenew":false,"latestPurchaseDateMillis":1662104708000,"originalPurchaseDate":"2022-08-31T14:01:28Z","expirationDateMillis":1662105008000,"identifier":"pro","productIdentifier":"com.preteethai.dentist.subscription.monthly","isActive":false}},"active":{}},"originalPurchaseDateMillis":1375340400000,"nonSubscriptionTransactions":[],"firstSeenMillis":1662005782000,"originalAppUserId":"$RCAnonymousID:e3b37ae862c941febc374494917cc0b0","activeSubscriptions":[],"managementURL":null,"requestDate":"2022-09-02T07:50:21Z","allPurchasedProductIdentifiers":["com.preteethai.dentist.subscription.month","com.preteethai.dentist.subscription.monthly","com.preteethai.dentist.subscription.pro"],"latestExpirationDate":"2022-09-02T07:50:08Z","firstSeen":"2022-09-01T04:16:22Z","allPurchaseDatesMillis":{"com.preteethai.dentist.subscription.pro":1660673381000,"com.preteethai.dentist.subscription.month":1661324754000,"com.preteethai.dentist.subscription.monthly":1662104708000},"originalApplicationVersion":"1.0","allExpirationDatesMillis":{"com.preteethai.dentist.subscription.pro":1660673681000,"com.preteethai.dentist.subscription.monthly":1662105008000,"com.preteethai.dentist.subscription.month":1661325054000},"requestDateMillis":1662105021000,"allExpirationDates":{"com.preteethai.dentist.subscription.month":"2022-08-24T07:10:54Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:14:41Z","com.preteethai.dentist.subscription.monthly":"2022-09-02T07:50:08Z"}}}
Purchases:_logIn(String)
Successfully set user id v0kpCeNMD0UsHZIFNyDZW5uUc0x1 for revenue cat purchase manager!
RevenueCatPurchaseManager:<LogIn>b__19_0(CustomerInfo, Boolean, Error)
LogInFunc:Invoke(CustomerInfo, Boolean, Error)
Purchases:_logIn(String)
Updated UI: isSubscribed = false
RevenueCatPurchaseManager:UpdateUI()
RevenueCatPurchaseManager:<LogIn>b__19_0(CustomerInfo, Boolean, Error)
LogInFunc:Invoke(CustomerInfo, Boolean, Error)
Purchases:_logIn(String)
2022-09-02 15:51:10.129313+0800 PreteethAIPro[8912:602179] [Purchases] - DEBUG: ℹ️ API request completed: GET /v1/subscribers/v0kpCeNMD0UsHZIFNyDZW5uUc0x1/offerings 304
2022-09-02 15:51:10.131973+0800 PreteethAIPro[8912:602179] [Purchases] - DEBUG: ℹ️ GetOfferingsOperation: Finished
2022-09-02 15:51:10.132483+0800 PreteethAIPro[8912:602229] [Purchases] - DEBUG: ℹ️ Skipping products request because products were already cached. products: ["com.preteethai.dentist.subscription.monthly", "com.preteethai.dentist.subscription.annual"]
2022-09-02 15:51:10.132772+0800 PreteethAIPro[8912:602179] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/v0kpCeNMD0UsHZIFNyDZW5uUc0x1/offerings, 0 requests left in the queue
2022-09-02 15:51:18.396275+0800 PreteethAIPro[8912:601870] [Purchases] - DEBUG: ℹ️ Vending Offerings from cache
2022-09-02 15:51:18.396772+0800 PreteethAIPro[8912:601870] [Purchases] - INFO: 💰 Purchasing Product 'com.preteethai.dentist.subscription.monthly' from package in Offering 'default'
2022-09-02 15:51:18.412241+0800 PreteethAIPro[8912:601870] [Purchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: com.preteethai.dentist.subscription.monthly 2000000144947383 2000000143341334 1
2022-09-02 15:51:18.413108+0800 PreteethAIPro[8912:601870] [Purchases] - DEBUG: ℹ️ Force refreshing the receipt to get latest transactions from Apple.
2022-09-02 15:51:20.456394+0800 PreteethAIPro[8912:602312] [Purchases] - DEBUG: ℹ️ Loaded receipt from url file:///private/var/mobile/Containers/Data/Application/6BAFF1CD-B58D-43A9-8330-629F3CD38B18/StoreKit/sandboxReceipt
2022-09-02 15:51:20.456510+0800 PreteethAIPro[8912:602227] [Purchases] - DEBUG: ℹ️ Skipping products request because products were already cached. products: ["com.preteethai.dentist.subscription.monthly"]
2022-09-02 15:51:20.456812+0800 PreteethAIPro[8912:601870] [Purchases] - DEBUG: ℹ️ Found 0 unsynced attributes for App User ID: v0kpCeNMD0UsHZIFNyDZW5uUc0x1
2022-09-02 15:51:20.466014+0800 PreteethAIPro[8912:602227] [Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Started
2022-09-02 15:51:20.466090+0800 PreteethAIPro[8912:602227] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST receipts
2022-09-02 15:51:20.468089+0800 PreteethAIPro[8912:602227] [Purchases] - DEBUG: ℹ️ API request started: POST /v1/receipts
2022-09-02 15:51:22.626768+0800 PreteethAIPro[8912:602312] [Purchases] - DEBUG: ℹ️ API request completed: POST /v1/receipts 200
2022-09-02 15:51:22.650127+0800 PreteethAIPro[8912:602312] [Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Finished
2022-09-02 15:51:22.650682+0800 PreteethAIPro[8912:602312] [Purchases] - DEBUG: ℹ️ Serial request done: POST receipts, 0 requests left in the queue
2022-09-02 15:51:22.655195+0800 PreteethAIPro[8912:601870] [Purchases] - INFO: 😻💰 Purchased product - 'com.preteethai.dentist.subscription.monthly'
2022-09-02 15:51:22.656296+0800 PreteethAIPro[8912:601870] json = {"productIdentifier":"com.preteethai.dentist.subscription.monthly","userCancelled":false,"customerInfo":{"latestExpirationDate":"2022-09-02T07:50:08Z","firstSeenMillis":1662005782000,"originalAppUserId":"$RCAnonymousID:e3b37ae862c941febc374494917cc0b0","allPurchaseDatesMillis":{"com.preteethai.dentist.subscription.pro":1660673381000,"com.preteethai.dentist.subscription.monthly":1662104708000,"com.preteethai.dentist.subscription.month":1661324754000},"firstSeen":"2022-09-01T04:16:22Z","allPurchasedProductIdentifiers":["com.preteethai.dentist.subscription.pro","com.preteethai.dentist.subscription.month","com.preteethai.dentist.subscription.monthly"],"originalPurchaseDateMillis":1375340400000,"nonSubscriptionTransactions":[],"entitlements":{"active":{},"all":{"pro":{"originalPurchaseDateMillis":1661954488000,"expirationDate":"2022-09-02T07:50:08Z","originalPurchaseDate":"2022-08-31T14:01:28Z","productIdentifier":"com.preteethai.dentist.subscription.monthly","unsubscribedDetectedAtMillis":1662104700000,"ownershipType":"PURCHASED","identifier":"pro","isActive":false,"latestPurchaseDateMillis":1662104708000,"periodType":"NORMAL","billingIssueDetectedAt":null,"unsubscribedDetectedAt":"2022-09-02T07:45:00Z","store":"APP_STORE","isSandbox":true,"billingIssueDetectedAtMillis":null,"expirationDateMillis":1662105008000,"willRenew":false,"latestPurchaseDate":"2022-09-02T07:45:08Z"}}},"originalApplicationVersion":"1.0","latestExpirationDateMillis":1662105008000,"originalPurchaseDate":"2013-08-01T07:00:00Z","allPurchaseDates":{"com.preteethai.dentist.subscription.monthly":"2022-09-02T07:45:08Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:05:54Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:09:41Z"},"requestDateMillis":1662105082000,"activeSubscriptions":[],"allExpirationDatesMillis":{"com.preteethai.dentist.subscription.month":1661325054000,"com.preteethai.dentist.subscription.monthly":1662105008000,"com.preteethai.dentist.subscription.pro":1660673681000},"allExpirationDates":{"com.preteethai.dentist.subscription.monthly":"2022-09-02T07:50:08Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:14:41Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:10:54Z"},"managementURL":null,"requestDate":"2022-09-02T07:51:22Z"}}
2022-09-02 15:51:22.657282+0800 PreteethAIPro[8912:601870] [Purchases] - INFO: 💰 Finishing transaction com.preteethai.dentist.subscription.monthly 2000000144947383 (2000000143341334)
_makePurchase {"productIdentifier":"com.preteethai.dentist.subscription.monthly","userCancelled":false,"customerInfo":{"latestExpirationDate":"2022-09-02T07:50:08Z","firstSeenMillis":1662005782000,"originalAppUserId":"$RCAnonymousID:e3b37ae862c941febc374494917cc0b0","allPurchaseDatesMillis":{"com.preteethai.dentist.subscription.pro":1660673381000,"com.preteethai.dentist.subscription.monthly":1662104708000,"com.preteethai.dentist.subscription.month":1661324754000},"firstSeen":"2022-09-01T04:16:22Z","allPurchasedProductIdentifiers":["com.preteethai.dentist.subscription.pro","com.preteethai.dentist.subscription.month","com.preteethai.dentist.subscription.monthly"],"originalPurchaseDateMillis":1375340400000,"nonSubscriptionTransactions":[],"entitlements":{"active":{},"all":{"pro":{"originalPurchaseDateMillis":1661954488000,"expirationDate":"2022-09-02T07:50:08Z","originalPurchaseDate":"2022-08-31T14:01:28Z","productIdentifier":"com.preteethai.dentist.subscription.monthly","unsubscribedDetectedAtMillis":1662104700000,"ownershipType":"PURCHASED","identifier":"pro","isActive":false,"latestPurchaseDateMillis":1662104708000,"periodType":"NORMAL","billingIssueDetectedAt":null,"unsubscribedDetectedAt":"2022-09-02T07:45:00Z","store":"APP_STORE","isSandbox":true,"billingIssueDetectedAtMillis":null,"expirationDateMillis":1662105008000,"willRenew":false,"latestPurchaseDate":"2022-09-02T07:45:08Z"}}},"originalApplicationVersion":"1.0","latestExpirationDateMillis":1662105008000,"originalPurchaseDate":"2013-08-01T07:00:00Z","allPurchaseDates":{"com.preteethai.dentist.subscription.monthly":"2022-09-02T07:45:08Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:05:54Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:09:41Z"},"requestDateMillis":1662105082000,"activeSubscriptions":[],"allExpirationDatesMillis":{"com.preteethai.dentist.subscription.month":1661325054000,"com.preteethai.dentist.subscription.monthly":1662105008000,"com.preteethai.dentist.subscription.pro":1660673681000},"allExpirationDates":{"com.preteethai.dentist.subscription.monthly":"2022-09-02T07:50:08Z","com.preteethai.dentist.subscription.pro":"2022-08-16T18:14:41Z","com.preteethai.dentist.subscription.month":"2022-08-24T07:10:54Z"},"managementURL":null,"requestDate":"2022-09-02T07:51:22Z"}}
Purchases:_makePurchase(String)
Finished purchase com.preteethai.dentist.subscription.monthly!
RevenueCatPurchaseManager:<BeginPurchase>b__25_0(String, CustomerInfo, Boolean, Error)
MakePurchaseFunc:Invoke(String, CustomerInfo, Boolean, Error)
Purchases:_makePurchase(String)
Updated UI: isSubscribed = false
RevenueCatPurchaseManager:UpdateUI()
MakePurchaseFunc:Invoke(String, CustomerInfo, Boolean, Error)
Purchases:_makePurchase(String)
2022-09-02 15:51:24.192104+0800 PreteethAIPro[8912:601870] [Purchases] - DEBUG: ℹ️ PaymentQueue removedTransaction: com.preteethai.dentist.subscription.monthly 2000000144947383 2000000143341334 1
-
Steps to reproduce, with a description of expected vs. actual behavior
Described above.
-
Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
https://community.revenuecat.com/sdks-51/unable-to-resubscribe-after-expiration-in-testflight-sandbox-environment-many-related-posts-before-without-a-solution-2006
Additional context
Add any other context about the problem here.