taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

taler-exchange-kyc-tester.1.rst (5946B)


      1 taler-exchange-kyc-tester(1)
      2 ############################
      3 
      4 .. only:: html
      5 
      6    Name
      7    ====
      8 
      9    **taler-exchange-kyc-tester** - tool to test interaction with KYC provider
     10 
     11 Synopsis
     12 ========
     13 
     14 **taler-exchange-kyc-tester**
     15 [**-c** *FILENAME* | **--config=**\ ‌\ *FILENAME*]
     16 [**-h** | **--help**]
     17 [**-L** *LOGLEVEL* | **--loglevel=**\ ‌\ *LOGLEVEL*]
     18 [**-l** *FILENAME* | **--logfile=**\ ‌\ *FILENAME*]
     19 [**-i** *SECTION_NAME* | **--initiate=**\ ‌\ *SECTION_NAME*]
     20 [**-M** | **--list-measures**]
     21 [**-m** *MEASURE_NAME* | **--measure=**\ ‌\ *MEASURE_NAME*]
     22 [**-o** *OPERATION_TYPE* | **--operation=**\ ‌\ *OPERATION_TYPE*]
     23 [**-P** | **--print-payto-hash**]
     24 [**-p** *HASH* | **--payto-hash=**\ ‌\ *HASH*]
     25 [**-R** *JSON* | **--ruleset=**\ ‌\ *JSON*]
     26 [**-r** *NUMBER* | **--rowid=**\ ‌\ *NUMBER*]
     27 [**-t** *AMOUNT* | **--trigger=**\ ‌\ *AMOUNT*]
     28 [**-u** *ID* | **--user=**\ ‌\ *ID*]
     29 [**-U** *ID* | **--legitimization=**\ ‌\ *ID*]
     30 [**-v** | **--version**]
     31 [**-w** | **--run-webservice**]
     32 
     33 
     34 Description
     35 ===========
     36 
     37 **taler-exchange-kyc-tester** is used to test the interaction between a Taler exchange and a KYC service. The tool can be used to manually trigger the various steps of a KYC process and to observe the interaction with the respective KYC service. It is supposted to help test the configuration of the integration, and *not* required at all during production.
     38 
     39 To use it, you must first provide a configuration file with at least one KYC service configured. Some other exchange-specific options, like the PORT for the HTTP service and the BASE_URL under which the Taler exchange will run are also required. You should be able to use exactly the same configuration file that one would usually give to a Taler exchange.  Starting with this, the tool allows the simulation of a KYC process. Note that it will not write any information to the database.
     40 
     41 Begin with a first invocation of taler-exchange-kyc-tester using the options **-i** for an individual or business and use **-R** to specify a list of checks required from the process. The output will be an URL to visit with the browser, as well as **-p**, **-u**, **-U** options to use in future invocations of the tool.
     42 
     43 Next, run taler-exchange-kyc-tester again, but this time using **-w** (to run the Webserver) and using the **-u** and **-U** options output by the previous call, as well as the **-p** option with the payto hash.  Then visit the Web site from the link output by the previous invocation and "pass" (or "fail") the KYC check.
     44 
     45 
     46 **-c** *FILENAME* \| **--config=**\ ‌\ *FILENAME*
     47    Use the configuration and other resources for the exchange to operate
     48    from *FILENAME*.
     49 
     50 **-h** \| **--help**
     51    Print short help on options.
     52 
     53 **-L** *LOGLEVEL* \| **--loglevel=**\ ‌\ *LOGLEVEL*
     54    Specifies the log level to use. Accepted values are: ``DEBUG``, ``INFO``,
     55    ``WARNING``, ``ERROR``.
     56 
     57 **-l** *FILENAME* \| **--logfile=**\ ‌\ *FILENAME*
     58    Send logging output to *FILENAME*.
     59 
     60 **-i** *USERTYPE* \| **--initiate=**\ ‌\ *USERTYPE*
     61    Specifies the type of user for which we are starting a fresh KYC process. USERTYPE must be either "individual" or "business".
     62 
     63 **-M** \| **--list-measures**
     64    List possible measures to be given to the **-m** option.
     65 
     66 **-m** *MEASURE_NAME* \| **--measure=**\ ‌\ *MEASURE_NAME*
     67    Trigger the KYC operation using the given *MEASURE_NAME* among the choices of KYC measures.
     68 
     69 **-o** *OPERATION_TYPE* \| **--operation=**\ ‌\ *OPERATION_TYPE*
     70    Trigger the KYC operation by simulating a trigger of the given *OPERATION_TYPE*.
     71 
     72 **-P** \| **--print-payto-hash**
     73    Print the HASH of the payto://-URI used for the KYC simulation this time. Useful if the hash is needed for a subsequent use in conjunction with **-p**.
     74 
     75 **-p** *HASH* \| **--payto-hash=**\ ‌\ *HASH*
     76    Run the process with HASH as the hash of the payto://-URI that identifies the account or wallet triggering the KYC requirement. If not given, a fresh random value is used. Rarely useful.
     77 
     78 **-R** *CHECKS* \| **--requirements=**\ ‌\ *CHECKS*
     79    Start a fresh KYC process for the given list of CHECKS. CHECKS must be a space-separated list of checks that must be in the configuration under *PROVIDED_CHECKS* for some of the providers. The exchange will determine which provider to use for KYC based on the CHECKS given.  The tool will output the HTTP URL where the user has to begin the KYC process to the command-line. This is usually the first thing to do when using this tool. Outputs the KYC-logic specific user and legitimization IDs, or NULL if not used by the KYC-logic at the initiation stage.  You may want to use the **-P** option to also obtain the Payto-Hash for use with **p** later.
     80 
     81 **-r** *NUMBER* \| **--rowid=**\ ‌\ *NUMBER*
     82    Run the process with NUMBER as the database row for the legitimization operation. Rarely useful, except maybe for debugging. Defaults to 42.
     83 
     84 **-t** *AMOUNT* \| **--trigger=**\ ‌\ *AMOUNT*
     85    Trigger the KYC operation by crossing the specified *AMOUNT* for the given **-o** *OPERATION_TYPE*.
     86 
     87 **-U** *ID* \| **--legitimization=**\ ‌\ *ID*
     88    Run the process with ID for the legitimization process identifier at the KYC provider. Not useful in conjunction with **-R** / **-i** as that option will override whatever value is provided here.
     89 
     90 **-u** *ID* \| **--user=**\ ‌\ *ID*
     91    Run the process with ID for the user identifier at the KYC provider. Not useful in conjunction with **-i** and **-R** as that option will override whatever value is provided here.
     92 
     93 **-v** \| **--version**
     94    Print version information.
     95 
     96 **-w** \| **--run-webservice**
     97    Run a simulated Taler exchange HTTP service on the configured port with the ``/kyc-proof/`` and ``/kyc-webhook/`` endpoints.
     98 
     99 
    100 See Also
    101 ========
    102 
    103 taler-exchange-httpd(1), taler-exchange.conf(5).
    104 
    105 Bugs
    106 ====
    107 
    108 Report bugs by using https://bugs.taler.net/ or by sending electronic
    109 mail to <taler@gnu.org>.