Failure to re-purchase a product on iOS.

  • 7 September 2022
  • 0 replies

Badge +3

After a few re-purchases of the same product (after it expired normally) it becomes impossible to re-purchase it again. The Apple native purchase dialog is not displayed, PurchaseProduct callback is called with no errors, but the CustomerInfo does not include any active Entitlement or any ActiveSubscription.

(We are using RevenueCat SDK 4.0.0 and Unity 2021.3.8)

Of course, those purchases are in sandbox. But it's impossible for us to determine if this is a sandbox-only issue. We never had a similar issue with in our current implementation of Unity IAP, so answering this is actually an important for us as we are currently trying to assess if the SDK is stable enough to transition to.

Here are the [Purchases] logs from one of those failed purchase:


2022-09-01 12:06:22.334218-0400 AppName[18946:594262] [Purchases] - DEBUG: ℹ️ Skipping products request because products were already cached. products: [""]
2022-09-01 12:06:22.337390-0400 AppName[18946:593336] [Purchases] - INFO: 💰 Purchasing Product ''
2022-09-01 12:06:22.340405-0400 AppName[18946:593336] [Purchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: XXXXXXXXXXXXXXX1 XXXXXXXXXXXXXXX2 1
2022-09-01 12:06:22.341816-0400 AppName[18946:593336] [Purchases] - DEBUG: ℹ️ Force refreshing the receipt to get latest transactions from Apple.

2022-09-01 12:06:23.055246-0400 AppName[18946:594262] [Purchases] - DEBUG: ℹ️ Loaded receipt from url file:///private/var/mobile/Containers/Data/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/StoreKit/sandboxReceipt
2022-09-01 12:06:23.055986-0400 AppName[18946:594262] [Purchases] - DEBUG: ℹ️ Skipping products request because products were already cached. products: [""]
2022-09-01 12:06:23.056637-0400 AppName[18946:593336] [Purchases] - DEBUG: ℹ️ Found 0 unsynced attributes for App User ID: XXXXXXXXXXXXXXXX
2022-09-01 12:06:23.088693-0400 AppName[18946:594262] [Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Started
2022-09-01 12:06:23.089212-0400 AppName[18946:594262] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST receipts
2022-09-01 12:06:23.097133-0400 AppName[18946:594262] [Purchases] - DEBUG: ℹ️ API request started: POST /v1/receipts
2022-09-01 12:06:25.050778-0400 AppName[18946:594262] [Purchases] - DEBUG: ℹ️ API request completed: POST /v1/receipts 200
2022-09-01 12:06:25.066365-0400 AppName[18946:594262] [Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Finished
2022-09-01 12:06:25.066750-0400 AppName[18946:594262] [Purchases] - DEBUG: ℹ️ Serial request done: POST receipts, 0 requests left in the queue
2022-09-01 12:06:25.071697-0400 AppName[18946:593336] [Purchases] - INFO: 😻💰 Purchased product - ''
2022-09-01 12:06:25.073391-0400 AppName[18946:593336] [Purchases] - INFO: 💰 Finishing transaction XXXXXXXXXXXXXXX1 (XXXXXXXXXXXXXXX2)

I did originally post a reply on this thread, but the post never appeared for some reason.

0 replies

Be the first to reply!