RevenueCat / purchases-ios

In-app purchases and subscriptions made easy. Support for iOS, watchOS, tvOS, macOS, and visionOS.
https://www.revenuecat.com/
MIT License
2.37k stars 319 forks source link

Pass transactionData to handleReceiptPost in syncPurchasesSK2 #4513

Closed MarkVillacampa closed 4 days ago

MarkVillacampa commented 4 days ago

Checklist

Motivation

While investigating another issue, we noticed we were not passing transactionData to handleReceiptPost in syncPurchasesSK2.

The only place it's used down the line is here when re-caching the paywall in case of a failure, but this cannot happen since syncPurchases would never have an associated paywall.

https://github.com/RevenueCat/purchases-ios/blob/c85c6ecb62c32e7a94c9f58ae10d073551a860d3/Sources/Purchasing/Purchases/PurchasesOrchestrator.swift#L1413

Regardless, we can fix it just in case we want to use purchaseData down the line in the future for other reasons.

Description