Skip to main content

ReceiptParser.swift: Could not parse receipt

  • February 6, 2022
  • 3 replies
  • 119 views

Forum|alt.badge.img+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)

This post has been closed for comments

3 replies

Forum|alt.badge.img+3
  • Author
  • New Member
  • February 10, 2022

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


sundeep
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • February 10, 2022

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


Forum|alt.badge.img
  • New Member
  • February 20, 2022

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.