WebAPI/WebPayment: Difference between revisions

Line 317: Line 317:
=== Testing against the BlueVia Payment Provider ===
=== Testing against the BlueVia Payment Provider ===
The <code>navigator.mozPay</code> API is currently in mozilla-central and there is a first alpha version of the BlueVia Payment Provider, so testing is currently possible. Currently (31th August), there are several requirements though.
The <code>navigator.mozPay</code> API is currently in mozilla-central and there is a first alpha version of the BlueVia Payment Provider, so testing is currently possible. Currently (31th August), there are several requirements though.
* The Gaia frontend code for the payment part isn't landed yet, so you would need to apply the patches contained in the [https://github.com/mozilla-b2g/gaia/pull/3839 Trustworthy UI] and the [https://github.com/mozilla-b2g/gaia/pull/3840 Payment confirmation screen] pull requests.


* <code>navigator.mozPay</code> requires a list of allowed Payment Providers given in the form of user preferences. So first of all, you need to add this Payment Providers information to your Gaia profile <code>prefs.js</code> file. The following preferences provides access to BlueVia Payment Providers (with two different flows) and a Mock Payment Provider.
* <code>navigator.mozPay</code> requires a list of allowed Payment Providers given in the form of user preferences. So first of all, you need to add this Payment Providers information to your Gaia profile <code>prefs.js</code> file. The following preferences provides access to BlueVia Payment Providers (with two different flows) and a Mock Payment Provider.
Confirmed users
483

edits