BranchMetrics / ios-branch-deep-linking-attribution

The Branch iOS SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
https://help.branch.io/developers-hub/docs/ios-sdk-overview
MIT License
731 stars 228 forks source link

The data carried during the reporting of BranchStandardEventPurchase is incorrect. #1396

Closed dragonbattlesun closed 1 month ago

dragonbattlesun commented 3 months ago

Describe the bug

When Branch reports the "BranchStandardEventPurchase" event, it automatically assigns self.revenue = product.price. If my product is discounted, using product.price here is incorrect, causing a discrepancy between the "revenue" data in my backend and the actual product price in my order data.

Steps to reproduce

1. 2. 3.

Expected behavior

It should return the price paid at the time of subscription, rather than the pre-discount price.

SDK Version

ios3.4.3

XCode Version

15.3

Device

iPhone13

OS

17.0*

Additional Information/Context

No response

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale due to inactivity for 60 days. If this issue is still relevant, please respond with any updates or this issue will be closed in 7 days. If you believe this is a mistake, please comment to let us know. Thank you for your contributions.

github-actions[bot] commented 1 month ago

This issue has been closed due to inactivity. If this issue is still relevant, please reopen it or create a new one. Thank you for your contributions.