Confirmed users
483
edits
| Line 336: | Line 336: | ||
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 | * The Gaia frontend code for the payment part isn't landed yet (31th August), 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> | <code> | ||
pref("dom.payment.provider.0.name", "blueviasimple"); | |||
pref("dom.payment.provider.0.description", "Telefónica BlueVia simple flow"); | |||
pref("dom.payment.provider.0.type", "tu.com/payments/v1/simplepay"); | |||
pref("dom.payment.provider.0.uri", "https://id.tda-qa-01.hi.inet/en/payments/v1/simplepay?req="); | |||
pref("dom.payment.provider.0.requestMethod", "GET"); | |||
pref("dom.payment.provider.1.name", "bluevia"); | |||
pref("dom.payment.provider.1.description", "Telefonica BlueVia flow"); | |||
pref("dom.payment.provider.1.type", "tu.com/payments/v1/pay"); | |||
pref("dom.payment.provider.1.uri", "https://id.tda-qa-01.hi.inet/en/payments/v1/pay?req="); | |||
pref("dom.payment.provider.1.requestMethod", "GET"); | |||
pref("dom.payment.provider.2.name", "mockpayprovider"); | |||
pref("dom.payment.provider.2.description", "Mock Payment Provider"); | |||
pref("dom.payment.provider.2.type", "mock/payments/inapp/v1"); | |||
pref("dom.payment.provider.2.uri", "https://mockpayprovider.phpfogapp.com/?req="); | |||
pref("dom.payment.provider.2.requestMethod", "GET"); | |||
</code> | </code> | ||
| Line 352: | Line 369: | ||
*** 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. | ||
If everything went well, you should be able to start testing. | |||
=== Error codes === | === Error codes === | ||