core, badge service: say how a verified transaction and a stored payment differ

This commit is contained in:
spaced4ndy
2026-10-01 16:01:26 +04:00
parent dc392994bf
commit 039bf2e0f7
2 changed files with 4 additions and 2 deletions
@@ -25,7 +25,8 @@ import Simplex.Messaging.Util (catchOwn')
import System.Timeout (timeout)
-- | What a store vouches for about one completed transaction.
-- PaymentFunding's PFApple and PFGoogle hold much the same; the two are reconciled when PaymentFunding is built out.
-- TODO [badges] reconcile with PaymentFunding's PFApple and PFGoogle, which record a payment the
-- service stored rather than what a store attested, when PaymentFunding is built out.
data VerifiedStoreTransaction = VerifiedStoreTransaction
{ transactionRef :: Text, -- from what was verified: Apple's transactionId, googlePurchaseRef of the token asked about
productId :: Text,
+2 -1
View File
@@ -139,7 +139,8 @@ data StoredPayment = StoredPayment
deriving (Show)
-- to review
-- PFApple and PFGoogle hold much what the service's VerifiedStoreTransaction does; the two are reconciled when this is built out.
-- TODO [badges] reconcile PFApple and PFGoogle with the badge service's VerifiedStoreTransaction,
-- which is what a store attested rather than a payment recorded here, when this is built out.
data PaymentFunding
= PFInvoice
{ invoiceId :: InvoiceId,