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

Jump to navigation Jump to search
m
Tag: 2017 source edit
Tag: 2017 source edit
Line 162: Line 162:
*Install the module einvoicing on your own production Dolibarr of your company P.
*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).
*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.
*Once you have set the option EINVOICING_SUPERPDP_VIAPARTNER to 'proxy' on your own production Dolibarr, go into the setup of the module and choose "SuperPDP as proxy".
*Switch to SuperPDP dashboard and create an application on your SuperPDP account. The URL to allow for OAuth is provied on the Dolibarr setup screen. You will get the client_id and client_secret. Goback  into the Dolibarr setup page of the module, and enter the keys. Remind the value of the EINVOICING_SUPERPDP_VIAPARTNER_OAUTH_URL shown, you will need it to the setup your customer instances.
*Once setup is done, you can switch back to the provider "SuperPDP direct access" for yourself (for your company P). The choice "SuperPDP Poxy" is here only to allow to enter some specific option. They are not lost if you go back to another Access Point provider and your Proxy is still active as long as its dedicated setup is ok.
*Once setup is done, you can switch back to the provider "SuperPDP direct access" for yourself (for your company P). The choice "SuperPDP Poxy" is here only to allow to enter some specific option. They are not lost if you go back to another Access Point provider and your Proxy is still active as long as its dedicated setup is ok.
*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:  
*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:  

Navigation menu