31,040
edits
Tag: 2017 source edit |
Tag: 2017 source edit |
||
| Line 160: | Line 160: | ||
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: | 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: | ||
== On your own Dolibarr (the proxy) == | |||
*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). | ||
| Line 165: | Line 166: | ||
*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. | *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. | ||
== On the Dolibarr of your customers == | |||
*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: | ||
** EINVOICING_SUPERPDP_VIAPARTNER_OAUTH_URL = the value provided at previous step (so one fixed value for all your customers). | ** EINVOICING_SUPERPDP_VIAPARTNER_OAUTH_URL = the value provided at previous step (so one fixed value for all your customers). | ||