Closed Bug 981235 Opened 12 years ago Closed 12 years ago

fxpay: check for product ownership (i.e. validate in-app receipts)

Categories

(Marketplace Graveyard :: Payments/Refunds, defect, P2)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
2014-06-24

People

(Reporter: kumar, Assigned: kumar)

References

Details

(Whiteboard: [qa-])

The fxpay script needs a method that an app can call to answer 'does the user on this device already own product ID 123'? Under the hood this will use the apps API to check for and validate receipts.
Blocks: 956358
Whiteboard: [qa-]
Would that mean the app could then decide to allow a duplicate payment or not? Some in-apps could be made multiple times, others not, others might have some app logic that makes sense to the app.
Priority: -- → P2
Assignee: nobody → kumar.mcmillan
Hmm, if an app were to allow duplicate payments then that might get messy because fxpay would install multiple receipts (I think?). Maybe we need to add a 'quantity' field to the receipt to accommodate buying multiple Unicorns or whatever.
I filed bug 984504 just so we remember to check on this
Assignee: kumar.mcmillan → nobody
Assignee: nobody → kumar.mcmillan
refactoring in preparation for validating receipts on startup: https://github.com/mozilla/fxpay/pull/13
Added fxpay.init() to restore receipts in: https://github.com/mozilla/fxpay/pull/15
final patch with receipt/product validation https://github.com/mozilla/fxpay/pull/16
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2014-06-24
You need to log in before you can comment on or make changes to this bug.