ReceiptParser.swift: Could not parse receipt

  • 6 February 2022
  • 3 replies
  • 96 views

Badge +3

When a user tries to restore a purchase, it fails with a message in console:

[Purchases] - WARN: ⚠️ /<project_path>/Pods/PurchasesCoreSwift/PurchasesCoreSwift/LocalReceiptParsing/ReceiptParser.swift-receiptHasTransactions(receiptData:): Could not parse receipt, conservatively returning true

I tried to debug this issue and found that it fails at InAppPurchaseBuilder.swift:87 because isInIntroOfferPeriod is nil.

 

I didn’t do any changes related to purchases recently. Is it something changed on a server side?

 

Purchases (3.14.0)
PurchasesCoreSwift (= 3.14.0)


3 replies

Badge +3

Solved. Doesn’t worth your attention. Sorry for bothering.

Userlevel 3
Badge +8

@Wojo glad you were able to solve it - feel free to share your solution here for others!

Badge

I can confirm this happens in our case too and it’s a bug in the SDK (and likely the server too). A receipt for a non-consumable should not require the isInIntroOfferPeriod.

Reply