Online Payment Module Architecture: Difference between revisions

m
Tag: 2017 source edit
Tag: 2017 source edit
Line 11: Line 11:
This page describe how the Dolibarr modules for online payments works so a developer can be able to develop its own payment module with any external system.
This page describe how the Dolibarr modules for online payments works so a developer can be able to develop its own payment module with any external system.


This is how the [[Module Stripe]], the [[Module PayPal]] but also external modules like the [[Module HelloAsso]], [[Module PayPlug]] are working. For core module, the code is hard coded, for external modules code is executed at the same place than core modules, but it is triggered by hooks instead of being hard coded.
This is how the way the [[Module Stripe]] and the [[Module PayPal]] works. External modules like the [[Module HelloAsso]], [[Module PayPlug]] are working too by using this architecture. For core module, the code is hard coded, for external modules code is executed at the same place than core modules, but it is triggered by hooks instead of being hard coded.


= Step 1 - The choice of the payment mode =
= Step 1 - The choice of the payment mode =