Closed
Bug 797926
Opened 12 years ago
Closed 12 years ago
Configure the Marketplace dev server as an allowed payment provider
Categories
(Firefox OS Graveyard :: Gaia, defect)
Firefox OS Graveyard
Gaia
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 824841
People
(Reporter: kumar, Unassigned)
References
Details
Once we have a dev server (bug 797917) we need to whitelist that URL so JWTs can be accepted on the phone for QA and functional testing. The patch would be similar to https://github.com/mozilla-b2g/gaia/commit/21cf147e78948e4ac562d39fa410a2c4371d5fb2
Reporter | ||
Comment 1•12 years ago
|
||
(In reply to Kumar McMillan [:kumar] from comment #0)
> Once we have a dev server (bug 797917)
I meant that this depends on bug 797608 for the new dev server URL
Comment 2•12 years ago
|
||
We should probably also need to remove the mock provider prefs
Reporter | ||
Comment 3•12 years ago
|
||
The new server is up and running (doesn't do much yet). I think the new prefs will look like this:
pref("dom.payment.provider.1.name", "firefoxmarketdev");
pref("dom.payment.provider.1.description", "Firefox Marketplace Dev");
pref("dom.payment.provider.1.type", "mozilla/payments/pay/v1");
pref("dom.payment.provider.1.uri", "https://marketplace-dev.allizom.org/mozpay/?req=");
pref("dom.payment.provider.1.requestMethod", "GET");
Comment 4•12 years ago
|
||
(In reply to Kumar McMillan [:kumar] from comment #3)
> The new server is up and running (doesn't do much yet). I think the new
> prefs will look like this:
>
> pref("dom.payment.provider.1.name", "firefoxmarketdev");
> pref("dom.payment.provider.1.description", "Firefox Marketplace Dev");
> pref("dom.payment.provider.1.type", "mozilla/payments/pay/v1");
> pref("dom.payment.provider.1.uri",
> "https://marketplace-dev.allizom.org/mozpay/?req=");
> pref("dom.payment.provider.1.requestMethod", "GET");
You need me to validate this? I can modify my profile quickly and get some JWTs up against the marketplace dev payment provider if need be.
Updated•12 years ago
|
blocking-basecamp: --- → ?
Comment 5•12 years ago
|
||
This is needed to use the Marketplace payment provider from the device, so it makes sense to set it as blocking-basecamp+
Comment 6•12 years ago
|
||
(In reply to Fernando Jiménez Moreno [:ferjm] from comment #5)
> This is needed to use the Marketplace payment provider from the device, so
> it makes sense to set it as blocking-basecamp+
Ehh...I don't think this blocks actually for the dev server specifically. Technically QA is not blocked if this isn't implemented, since I could modify the Gaia profile directly through adb to point to the dev server. The marketplace prod server version of this bug is definitely a blocker though.
It's nice to have this though.
Comment 7•12 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #6)
> (In reply to Fernando Jiménez Moreno [:ferjm] from comment #5)
> > This is needed to use the Marketplace payment provider from the device, so
> > it makes sense to set it as blocking-basecamp+
>
> Ehh...I don't think this blocks actually for the dev server specifically.
> Technically QA is not blocked if this isn't implemented, since I could
> modify the Gaia profile directly through adb to point to the dev server. The
> marketplace prod server version of this bug is definitely a blocker though.
>
> It's nice to have this though.
Ok, sorry. I was thinking about the production server details.
blocking-basecamp: ? → ---
Reporter | ||
Comment 8•12 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #4)
> > pref("dom.payment.provider.1.name", "firefoxmarketdev");
> > pref("dom.payment.provider.1.description", "Firefox Marketplace Dev");
> > pref("dom.payment.provider.1.type", "mozilla/payments/pay/v1");
> > pref("dom.payment.provider.1.uri",
> > "https://marketplace-dev.allizom.org/mozpay/?req=");
> > pref("dom.payment.provider.1.requestMethod", "GET");
>
> You need me to validate this? I can modify my profile quickly and get some
> JWTs up against the marketplace dev payment provider if need be.
Yeah, that would be helpful. Is there a way for me to edit the profile using a nightly otoro build? https://releases.mozilla.com/b2g/latest/ All I see is system.img but not a way to edit /system/b2g/defaults/pref/user.js before flashing.
Flags: needinfo?
Updated•12 years ago
|
Flags: needinfo? → needinfo?(jsmith)
Comment 9•12 years ago
|
||
(In reply to Kumar McMillan [:kumar] from comment #8)
> (In reply to Jason Smith [:jsmith] from comment #4)
> > > pref("dom.payment.provider.1.name", "firefoxmarketdev");
> > > pref("dom.payment.provider.1.description", "Firefox Marketplace Dev");
> > > pref("dom.payment.provider.1.type", "mozilla/payments/pay/v1");
> > > pref("dom.payment.provider.1.uri",
> > > "https://marketplace-dev.allizom.org/mozpay/?req=");
> > > pref("dom.payment.provider.1.requestMethod", "GET");
> >
> > You need me to validate this? I can modify my profile quickly and get some
> > JWTs up against the marketplace dev payment provider if need be.
>
> Yeah, that would be helpful. Is there a way for me to edit the profile using
> a nightly otoro build? https://releases.mozilla.com/b2g/latest/ All I see is
> system.img but not a way to edit /system/b2g/defaults/pref/user.js before
> flashing.
Yup. See the example script ferjm wrote in http://openwebdevice.com/blueviacerts/modifyCertDb.zip with the custom_pref.js. To get you unblocked, you could modify the custom_prefs.js file here to use the preferences you specified above and run the script with the phone plugged into your device. If you want a simplified script with adb to do this, look at the source of the script in there and reduce it down to the adb commands that add the custom_prefs.js piece to the Gaia profile. ferjm can add more details here if need be.
Flags: needinfo?(jsmith)
Reporter | ||
Comment 10•12 years ago
|
||
bug 824841 is better because it has all necessary prefs, not just dev
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•