WebAPI/WebPayment: Difference between revisions

Jump to navigation Jump to search
Line 412: Line 412:
== Modules ==
== Modules ==
The basic parts of the current mozPay implementation are:
The basic parts of the current mozPay implementation are:
* DOM part in Gecko, which contains the common code that exposes the mozPay function to the DOM and that is supposed to be shared by all the platforms (B2G, Fennec, Firefox).
=== DOM part in Gecko ===
* B2G Glue part in Gecko, which contains the specific B2G code that triggers the trusted UI creation to embed the payment flow iframe and that injects the required <code>paymentSuccess()</code> and <code>paymentFailed()</code> functions within the payment flow content.
Contains the common code that exposes the mozPay function to the DOM and that is supposed to be shared by all the platforms (B2G, Fennec, Firefox).
* Gaia part, which contains the require code to create, open and close the trusted UI and the payment confirmation screen.
=== B2G Glue part in Gecko ===
Contains the specific B2G code that triggers the trusted UI creation to embed the payment flow iframe and that injects the required <code>paymentSuccess()</code> and <code>paymentFailed()</code> functions within the payment flow content.
=== Gaia part ===
Contains the require code to create, open and close the trusted UI and the payment confirmation screen.


== Communication ==
== Communication ==
Confirmed users
483

edits

Navigation menu