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

Jump to navigation Jump to search
m
Tag: 2017 source edit
Tag: 2017 source edit
Line 164: Line 164:
*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.
*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: 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=

Navigation menu