A place to cache linked articles (think custom and personal wayback machine)
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

index.md 4.5KB

před 5 roky
123456789101112131415161718192021222324252627282930313233
  1. title: Farewell navigator.mozPay
  2. url: http://www.agmweb.ca/2016-03-02-mozpay/
  3. hash_url: b33ebd3c4dbb1d572e2102539dd2b215
  4. <p>A few weeks ago the Mozilla Marketplace announced it was <a href="https://wiki.mozilla.org/Marketplace#Upcoming_Changes_to_Marketplace">shutting down payments</a>. A few days ago bugs were filed to remove <a href="https://wiki.mozilla.org/WebAPI/WebPayment">mozPay</a> from the mozilla tree.</p>
  5. <p>And with that a pile of stuff I worked on at Mozilla for a long time with a couple of awesome colleagues came to an end. I'm not bitter about that at all, in the end I became the biggest proponent of ending this project because I saw the costs it was occuring (lots) and the returns (almost zero) and impact it was having (zero). At Mozilla we need to be better at evaluating and ending things when they don't work. If you can't end things that work, how can you start new exciting things?</p>
  6. <p>There's multiple reasons why payments didn't go anywhere, I'll detail the business ones in a later post. For a moment here's the technical things that stood out:</p>
  7. <ul>
  8. <li><p>mozPay was implemented in Firefox OS and later Android, which meant that web development was tied tightly to release timelines for phones.</p></li>
  9. <li><p>mozPay worked by putting a transparent border around the payment window, in an attempt to be unspoofable. Sadly this meant that the screen real estate got really small and was full of bugs as a result.</p></li>
  10. <li><p>mozPay had configuration in the platform, which meant that testing our dev and stage instances required continual re-configuration (something that got scripted through an add-on).</p></li>
  11. <li><p>The idea behind mozPay was flawed from the get go.</p></li>
  12. <li><p>The Marketplace was shipped as a web site because Firefox OS is about the web. But everything else on the phone was shipped as a packaged app. The advantage was that we could ship updates as often as we wanted. The downside was that every change had to be tested on every phone and OS we shipped back to the 1.0.</p></li>
  13. <li><p>Because everything else on the phone was not tested once it shipped, payments testing didn't get the benefit of the tools or expertise from Firefox OS. It was out on its own. I summed this up in a meeting once like this: "Either we are doing it wrong, or the rest of Firefox OS is, I'm not sure which but I know we are different".</p></li>
  14. <li><p>There wasn't a way to test it well at all really. There was no test framework from our payment provider. The only real way to test it was using real money.</p></li>
  15. <li><p>Because it was focused on carrier billing, not credit cards we were building a payments system for the web that couldn't be used on the web. Being in Canada, I couldn't test it at all, yet had to develop for it.</p></li>
  16. <li><p>Because there was no real way to test it or easily play with, it became opaque to so many people in Mozilla.</p></li>
  17. <li><p>At one point we couldn't even test carrier payments in the QA department in Mountain View because there was something wrong with carrier configuration for the tower that served the Mountain View office. We were asking people to drive away from the office and then test it.</p></li>
  18. <li><p>We were meant to be doing a UI that was consistent with both the Marketplace and Firefox OS. Both of which were not consistent with each other.</p></li>
  19. <li><p>We didn't own the entire flow of the payments, but had responsibility for it all, so that meant working with our payment provider to get minor changes done.</p></li>
  20. <li><p>...and don't get me started on authentication for payments and the switch from Persona to Firefox Accounts. That will bring me out in tears.</p></li>
  21. </ul>
  22. <p>If you think all the above sounds crazy, you are right. One time I went to DjangoCon Europe in Poland and said to my QA person "I'm in Poland can I test anything?". The reply I got was: go set up a Polish bank account, get a SIM card, get the SIM card billed to the bank account, get a phone, put the SIM card in and then try purchasing something. Ensure that when you purchase something it shows up correctly on your bank statement a few weeks later. I had one day free.</p>
  23. <p>But the level of purchasing from the user clicking the button all the way through to what appears on the bank account was the level we were looking after.</p>
  24. <p>We did have an awesome QA team who did heroic work under the circumstances, but all the above problems meant that this project was slow, moving, opaque and painful in many ways.</p>
  25. <p><b>Updated:</b> to reflect its being removed from the whole tree, not just Android.</p>