This article describes the communication between the RetailForce fiscalisation service and Revenu Québec's (RQ) WEB-SRM.
Revenu Québec provides the following WEB-SRM environments for data transmission:
- Development environment - DEV (Développement)
- Test environment for certification - ESSAI (Cas d’essais)
- Production environment - PROD (Production)
Development environment - DEV
Situation: during the implementation/connection of the RetailForce fiscalisation service (‘fiscal middleware’) to the electronic recording system ("cash register").
Purpose: To carry out tests to check how WEB-SRM responds to specific requests.
Use: Test cases for the DEV environment are described in document SW-77-V. Tests can be submitted in any order.
Settings: To transfer data to the DEV environment, the ‘Is Test’ flag must be set on the corresponding terminal.
Simulation certification
If a test case number ("testCaseNumber") is specified in the payload (JSON) to the middleware, you simulate the certification process. This allows you to test whether the required test cases would be processed error-free by WEB-WRM in the event of certification.
Simulation productive
If NO test case number or "000.000" is specified as the test case number in the payload, the behaviour of the production environment is simulated.
Note: RQ recommends setting the waiting time for responses from WEB-SRM in the DEV and ESSAI environments to a minimum of 10 seconds. The waiting time can be defined in the Configuration Canada ("WEB-SRM Connection Timeout in ms").
Test environment for certification
Situation: during the certification of the SRS.
Purpose: Submission of the test cases required for certification.
Use: Test cases that must be submitted as part of the certification process are described in document SW-78. Tests must be submitted in a specific order.
Settings: To transfer data to the ESSAI environment, the following must be done:
- Set the "Is Test" flag on the corresponding terminal and
- set the "Certification" flag in the Configuration Canada.
Transmission of specific test cases
When submitting test cases for certification, the corresponding test case number ("testCaseNumber") must be specified in the payload (JSON) to the middleware.
The WEB-SRM expects the test cases to be transferred in a specific order. The test case number that the WEB-SRM expects next is returned to the POS system in the "CasEssai" field of the FiscalResponseCanada.
Note: RQ recommends setting the waiting time for responses from WEB-SRM in the DEV and ESSAI environments to a minimum of 10 seconds. The waiting time can be defined in the Configuration Canada (‘WEB-SRM Connection Timeout in ms’).
Production environment
Situation: during live operation by the end customer (restaurant, bar, food truck, etc.).
Purpose: Transmission of documents to WEB-SRM within the scope of productive use.
Settings: depending on the business case, in the order in which they occur.
Settings: To transfer data to the PROD environment, the two flags (terminal flag: "Is Test") and (configuration, flag: "Certification") must NOT be set!
Note: The requirements for data transfer to the production environment can be found in the article "SRS Certification Canada / Québec".
Comments
0 comments
Please sign in to leave a comment.