WebAPI/WebPayment: Difference between revisions

Line 335: Line 335:
=== 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.
* <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
<code>
</code>


* Since the BlueVia Payment Provider is behind a Telefónica VPN, the first requirement is to get access to it. Unfortunately not everyone can get access to it and BlueVia should provide access to its dev servers under direct request.
* Since the BlueVia Payment Provider is behind a Telefónica VPN, the first requirement is to get access to it. Unfortunately not everyone can get access to it and BlueVia should provide access to its dev servers under direct request.
Line 344: Line 348:
*** Remove the <code>key3.db</code> and <code>cert8.db</code> files from your Gaia profile root.
*** Remove the <code>key3.db</code> and <code>cert8.db</code> files from your Gaia profile root.
*** Run B2G via <code>./b2g -profile <path-to-gaia-profile></code>
*** Run B2G via <code>./b2g -profile <path-to-gaia-profile></code>
*** Open an HTTPS web page from the browser app.
*** Open an HTTPS web page from the Gaia browser app.
*** Close B2G desktop.
*** Close B2G-desktop.
*** Copy the <code>key4.db</code>, <code>cert9.db</code> and <code>pkcs11.txt</code> files to the Gaia profile root.
*** Copy the <code>key4.db</code>, <code>cert9.db</code> and <code>pkcs11.txt</code> files to the Gaia profile root.
*** Launch B2G desktop again. You should be able to navigate to https://webvpn.tid.es from the Gaia system app, that means that the certificates has been properly stored.
*** Launch B2G-desktop again. You should be able to navigate to https://webvpn.tid.es from the Gaia system app, that means that the certificates has been properly stored.


=== Error codes ===
=== Error codes ===
Confirmed users
483

edits