For context, the payments settings must be correct before this code runs for the first time on the phone: http://mxr.mozilla.org/mozilla-central/source/dom/payment/Payment.jsm In other words, it doesn't necessarily correlate with with launching the Marketplace app.