Confirmed users
483
edits
| 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 === | |||
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). | |||
=== 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 == | ||