Marketplace/PaymentAndroid

From MozillaWiki
Jump to: navigation, search
Stop (medium size).png
The Marketplace has been placed into maintenance mode. It is no longer under active development. You can read complete details here.

Features

Summary of Android Payment features (as of Jan 7th 2014):

  1. [DONE] With a SIM card in a supported carrier and country
    1. Identity: HTTP Header Enrichment (magic) or MT Auth (enter phone number, wait for PIN) on first run. After that all return purchases will skip identity and go to payment.
    2. Payment: they can use operator billing or credit card depending upon the country (eg. Venezuela is credit card only)
  2. [DONE] Without SIM card in the device and using a supported carrier and country
    1. Identity: Users can link up any SIM card in a device using MT Auth on first run. They enter the phone number of the other device with a SIM. After that all return purchases will not need to do the identity step.
    2. Payment: they can use operator billing or credit card depending upon the country.
    3. Note: The flow will have been to do MT Auth, then enter a credit card. In this case the MT Auth was to establish an identity with Bango and not to use the phone number for billing. Bugs 893050 956412 will fix this.
  3. [WISHLIST] Without any SIM card in any device
    1. Identity: won't be possible, because MT Auth is required by Bango. Bug 893050 will fix this.
    2. Payment: won't be possible because identity isn't possible, even though credit card would work.
  4. [WISHLIST] With a SIM card, but not in a supported country
    1. Identity: won't be possible, because MT Auth will not complete. However if you've already been identified in another country and have travelled, you will be to use it. Bug 893050 might fix this, but we might need to expand the countries where MT Auth can be done (bug not filed yet).
    2. Payment: won't be possible because identity isn't possible, even though credit card would theoretically work (it does in Canada even). For this we'd worldwide credit cards to work (bug not filed yet).
  5. [WISHLIST] Without a SIM card and not in a supported country
    1. Good luck with that. Hopefully we should be able to give the user a nice error message.

Testing payments for Android

  1. Go get nightly Android: http://nightly.mozilla.org/
  2. Go and install this add-on so that you will get mozPay configured for dev and stage: https://addons.mozilla.org/en-US/firefox/addon/dev-marketplace/
  3. Use an existing app, or upload a new one and make sure you make it android compatible. Here's a test one: https://marketplace.allizom.org/app/test-app-iupsbfodawsp/
  4. Press buy

Debugging

Need to hook up a debugger to get some debugging action for that Android page? Try:

http://starkravingfinkle.org/blog/2012/08/firefox-for-android-remote-debugging-is-here/ https://hacks.mozilla.org/2012/08/remote-debugging-on-firefox-for-android/