-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SK2] send unsynced attributes when syncing purchases #4245
Changes from 1 commit
aee96d7
fe64e4b
74204e0
f0f494f
af01944
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1142,6 +1142,9 @@ private extension PurchasesOrchestrator { | |
self.backend.post(receipt: .empty, | ||
productData: nil, | ||
transactionData: .init(appUserID: currentAppUserID, | ||
presentedOfferingContext: nil, | ||
unsyncedAttributes: unsyncedAttributes, | ||
storefront: await Storefront.currentStorefront, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you have any concerns about the additional There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we're already awaiting sk2 twice in this codepath already though, right? first verified transaction + app transaction jws? |
||
source: .init(isRestore: isRestore, | ||
initiationSource: initiationSource)), | ||
observerMode: self.observerMode, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we dont really need the storefront here I think since there are no purchases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: maybe it's worth splitting this into its own line, like we do in the else code path, that explicitly does
createProductRequestData
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aboedo Done! We're now creating
transactionData
on it's own line 😎