Skip to content

NonSubscriptionTransaction: expose storeTransactionIdentifier#3639

Merged
NachoSoto merged 1 commit into
mainfrom
non-sub-transaction-store-id
Feb 6, 2024
Merged

NonSubscriptionTransaction: expose storeTransactionIdentifier#3639
NachoSoto merged 1 commit into
mainfrom
non-sub-transaction-store-id

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

Fixes #3636.

This was added in #3009.
It was not made public because it was only used for #2841, but as explained in #3636 it can be useful as public.

Fixes #3636.

This was added in #3009.
It was not made `public` because it was only used for #2841, but as explained in #3636 it can be useful as `public`.
@NachoSoto NachoSoto added the pr:feat A new feature label Feb 6, 2024
@NachoSoto NachoSoto requested a review from a team February 6, 2024 16:57
@NachoSoto

Copy link
Copy Markdown
Contributor Author

@aboedo you pointed out in #3009 (comment) that you wouldn't make it public. Thoughts on this now?

You mentioned:

a) we don't currently expose it for subscriptions, so maybe it's better to avoid confusion

But we do expose it when purchasing through StoreTransaction.

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to wait for @aboedo's review, since he had concerns on making this public. But LGTM!


/// The unique identifier for the transaction created by the Store.
@objc internal let storeTransactionIdentifier: String
@objc public let storeTransactionIdentifier: String

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm only slightly concerned about the confussion of having both ids... but I think it shoud be ok?

@NachoSoto NachoSoto merged commit 51fd49e into main Feb 6, 2024
@NachoSoto NachoSoto deleted the non-sub-transaction-store-id branch February 6, 2024 20:46
@jiangdi0924

Copy link
Copy Markdown

it‘s a good idea to expose storeTransactionIdentifier, because get transaction id is storeTransactionIdentifier,but customInfo cant get it, Unable to compare and verify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:feat A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NonSubscriptionTransaction.transactionIdentifier Does not match StoreTransaction.identifier

4 participants