bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

Enable the purchase button on B2G desktop

RESOLVED FIXED in 2013-01-10

Status

Marketplace
Payments/Refunds
P3
normal
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: kumar, Assigned: kumar)

Tracking

2013-01-10
x86
Mac OS X
Points:
---

Details

(Whiteboard: u=patron c=pmt p=1)

Paid apps are only supported on B2G (at first) but currently this is not detected correctly for B2G desktop. We need to support B2G desktop because it's an easier way to develop.

STR:
- Enable payments on a dev server using the waffle switch (set disable-payments to False)
- Edit an app to make it premium
- Visit the app details page on B2G desktop

Result: the purchase button is grayed out with a message saying "you must be on Firefox OS"

The current workaround for this is to enable middleware that forces mobile for all requests but we can't use this in production obviously. https://github.com/mozilla/zamboni/blob/84364e00cf19e2fd060a99e04d26c65a99769f44/sites/altdev/settings_mkt.py#L11
cvan or potch: one of you probably knows how to fix this. I took a quick look but couldn't figure out a way.
Blocks: 775802
Priority: -- → P2
Make sure desktop with a regular browser remains disabled please/thanks.
Assignee: nobody → thepotch
Target Milestone: --- → 2012-11-22

Comment 3

6 years ago
The best solution here is to use r2d2b2g instead of stock B2G Desktop. r2d2b2g changes the user agent to match firefox OS (No clue why b2g desktop doesn't).
Hmm, I can't see anything that the simulator is doing differently to define a user agent https://github.com/mykmelez/r2d2b2g/blob/master/addon/lib/main.js#L703 It just starts a subprocess with b2g desktop. We will probably need to support custom builds of desktop b2g before features land so maybe myk or Harold can show us how they got the UA string in there.
we need to come up with a solution for this so we can disable the middleware that forces mobile https://github.com/mozilla/zamboni/commit/d67edf90bf567537816b56041d9491e2d410eac9

potch, I think you're back next week? If not, I can grab it.
Priority: P2 → P1
Target Milestone: 2012-11-22 → 2012-12-20
Yay. I have a fix for this. It requires some custom prefs to override the desktop UA which I will document. I'll also remove the middleware from altdev when it's working.
Assignee: thepotch → kumar.mcmillan
Target Milestone: 2012-12-20 → 2012-12-27
Target Milestone: 2012-12-27 → 2013-01-03
Priority: P1 → P3
Whiteboard: u=patron c=pmt p=1
Target Milestone: 2013-01-03 → 2013-01-10
This was fixed in bug 821000 (UA string on desktop)
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.