Skip to main content

ReceiptParser.swift: Could not parse receipt

  • 6 February 2022
  • 3 replies
  • 106 views

Forum|alt.badge.img+3
  • New Member
  • 1 reply

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

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

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


sundeep
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 138 replies
  • 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
  • 1 reply
  • 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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings