Closed Bug 831027 Opened 13 years ago Closed 13 years ago

Extend the mozapps API to let it distinguish between free vs. paid apps

Categories

(Core Graveyard :: DOM: Apps, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: dholbert, Unassigned)

References

Details

Apparently when we're installing an app on B2G, we have no way to tell whether it was a free app or a paid app. I'm filing this bug on adding that capability to the mozapps API, so we can avoid showing the confusing & scary dialog mentioned in bug 830555 when the user's just canceling a free app install. (For reference, that dialog screenshotted in attachment 702069 [details]) (Note: I don't actually know anything about the mozapps API; I'm just copying that language from bug 830555 comment 5.)
Component: General → DOM: Apps
Product: Boot2Gecko → Core
Version: unspecified → Trunk
Apps objects already have a "receipts" property that holds the payment receipts. We can safely consider that if this property is not set, this is a free app. I guess there could be false positives where you have a receipt for $0. Not sure if it's a big deal though.
(In reply to Fabrice Desré [:fabrice] from comment #1) > Apps objects already have a "receipts" property that holds the payment > receipts. We can safely consider that if this property is not set, this is a > free app. I guess there could be false positives where you have a receipt > for $0. Not sure if it's a big deal though. Probably isn't. That would probably be acceptable way for Gaia to detect if the cancel prompt Dan brings up in related bug should be shown or not.
I'm going to close this as a worksforme given that checking the receipts property is property a way for Gaia to figure out when to show the are you sure cancel prompt.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Adding Jonas for a comment here. We previously determined that it was not possible to distinguish paid installs from unpaid installs. Fabrice indicates that the "receipts" property might be one way to make that determination. Does that sound right to you? Is the "receipts" property new? Sorry if this is a retread of an option already discussed. I can't recall the specific technical details of our conversations from a few months back.
Flags: needinfo?(jonas)
(In reply to Josh Carpenter [:jcarpenter] from comment #4) > Adding Jonas for a comment here. > > We previously determined that it was not possible to distinguish paid > installs from unpaid installs. Fabrice indicates that the "receipts" > property might be one way to make that determination. Does that sound right > to you? Is the "receipts" property new? The receipts property actually has existed for quite a while. On every payment made, marketplace signs receipts and provides them in the "receipts" property on install of the app.
That's what I thought. So I'm wondering why we didn't cite it earlier as a solution to this frequently-discussed pain point.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.