Module EInvoicing (Generic, FR, ...): Difference between revisions

Jump to navigation Jump to search
m
Tag: 2017 source edit
Tag: 2017 source edit
Line 156: Line 156:


[[File:Einvoice setup customer address.png|border]]
[[File:Einvoice setup customer address.png|border]]
=Options for integrators=
If you are an integrator or web hosting provider (called P) want to provide a solution to allow your customers (Called C) to register and use the einvoicing system in one click, without having to pay (all payments will be done by yourself) the module provide a solution. This is a possible with the mode "Proxy" of the einvoicing module and the platform SuperPDP:
* Install the module einvoicing on your own production Dolibarr of your company P.
* Go into Home - Setup - Other and add the constant EINVOICING_SUPERPDP_VIAPARTNER='proxy'. So your Dolibarr will be able to act as a proxy between your customers C and SuperPDP. Only you need to setup the client_id and client_secret of your API account of SuperPDP (Your customer will register using a simple click, see later).
Once you have set the option the option EINVOICING_SUPERPDP_VIAPARTNER to 'proxy' on your own production Dolibarr, go into the setup of the module. Create an application on your SuperPDP account and get the client_id and client_secret. Go into the setup page of the module, choose "SuperPDP as proxy" and enter the keys. Retreive the value of the EINVOICING_SUPERPDP_VIAPARTNER_OAUTH_URL you must need to use for the setup of your customer instances.
* Now you can deploy the module on all instances of your customers. You must also set the followign constant on the instance of your customer: EINVOICING_SUPERPDP_VIAPARTNER_OAUTH_URL = the value provided at previous step (so one fixed value for all your customers). You can also enter the constant EINVOICING_SUPERPDP_VIAPARTNER = 'YourCompanyName'. That's all. You customer will see, in the setup of the module a choice "Register to SuperPDP via YourCompanyName". If they select this, they will see a link "Register to SuperPDP" and licking on it will allow them to register without need to create account, no need to create an application, no need to generate and enter API key. The user has just to confirm the creation of its account, and a token to use its account will be recorded into its instance.


=External Tools=
=External Tools=

Navigation menu