[MNA-3651] [iOS] Storekit 2 - Add additional transactions and renewal info to v1/receipts API#20
Conversation
|
Hi @eduard-stern is it possible to have a feature toggle wrapping the logic?
|
I can add a feature toggle as a safety net. |
That's nice Eduard, I think ultimately we should also add in the new fields into post params hash (maybe also toggled by the flag). It would be good to have more granular control on setting in case there are new changes we will make in the forked SDK |
Thanks, Philip, added a |
…ipts API
Checklist
purchases-androidand hybridsMotivation
Storekit 2 - Add additional transactions and renewal info to v1/receipts API
MNA-3651
Description
Extends our purchases-ios-spm fork to augment the existing
/v1/receiptsproxy call with two additional fields:transactions — JWS tokens for all verified transactions from StoreKit.Transaction.all
renewal_info — JWS renewal info tokens fetched via Product.SubscriptionInfo.Status for all subscription groups
Unit tests added in the fork:
TransactionPosterTests— stubs the fetcher with known JWS arrays and asserts they reachMockBackendBackendPostReceiptDataTests— verifies the values pass through the Backend → CustomerAPI layer, that they serialize correctly as transactions/renewal_info in the JSON body, and that both keys are omitted entirely when nil