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

m
mNo edit summary
Tag: 2017 source edit
Line 40: Line 40:


==With any Dolibarr version==
==With any Dolibarr version==
=== Install from dolistore.com ===
===Install from dolistore.com===
Go and download the archive zip of the einvocing free module from dolistore.com
Go and download the archive zip of the einvocing free module from dolistore.com


Line 46: Line 46:
Upload the zip, the module is available. Go to configuration step.
Upload the zip, the module is available. Go to configuration step.


=== Install using git===
===Install using git===
In the meantime, install the module in the '''/custom''' directory of your dolibarr. For this, go into the /custom directory:
In the meantime, install the module in the '''/custom''' directory of your dolibarr. For this, go into the /custom directory:
  cd mydolibarrdir/htdocs/custom
  cd mydolibarrdir/htdocs/custom
Line 158: Line 158:


=Options for integrators (mode proxy)=
=Options for integrators (mode proxy)=
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:
If you are an integrator or web hosting provider (called P) and you 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 provides a solution. This is 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.  
*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 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.
*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=