merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

test_kyc_api.conf (7265B)


      1 # This file is in the public domain.
      2 #
      3 [PATHS]
      4 TALER_TEST_HOME = test_merchant_api_home/
      5 
      6 [merchant-exchange-chf]
      7 DISABLED = YES
      8 
      9 [merchant-exchange-kudos]
     10 DISABLED = YES
     11 
     12 [taler-helper-crypto-rsa]
     13 LOOKAHEAD_SIGN = 24 days
     14 
     15 [taler-helper-crypto-eddsa]
     16 LOOKAHEAD_SIGN = 24 days
     17 DURATION = 14 days
     18 
     19 [bank]
     20 HTTP_PORT = 8082
     21 
     22 [merchant]
     23 PORT = 8080
     24 SERVE = tcp
     25 STRICT_PROTOCOL_V19 = YES
     26 DB = postgres
     27 BASE_URL = http://localhost:8080/
     28 
     29 # This specifies which database the postgres backend uses.
     30 [merchantdb-postgres]
     31 CONFIG = postgres:///talercheck
     32 SQL_DIR = ${DATADIR}sql/
     33 
     34 [merchant-exchange-test]
     35 MASTER_KEY = KHA6YSPRQV1ZFCF144SY8KJNR588XA8DA0F6510FKJW30DJFJNAG
     36 EXCHANGE_BASE_URL = http://localhost:8081/
     37 CURRENCY = EUR
     38 
     39 [auditor]
     40 BASE_URL = "http://localhost:8083/"
     41 AUDITOR_PRIV_FILE = ${TALER_DATA_HOME}/auditor/offline-keys/auditor.priv
     42 DB = postgres
     43 PUBLIC_KEY = A29P1DRGXVTJZV1HFG251QPAW3ZTC681ZJWXB1T0RWGPE2HQSGZG
     44 TALER_AUDITOR_SALT = test
     45 TINY_AMOUNT = EUR:0.01
     46 
     47 [auditordb-postgres]
     48 CONFIG = postgres:///talercheck
     49 
     50 [exchange]
     51 # A purse must not outlive the denominations of the coins in it, see the
     52 # comment on PURSE_EXPIRATION_LIMIT in the exchange's exchange.conf.
     53 PURSE_EXPIRATION_LIMIT = 3 years
     54 CURRENCY = EUR
     55 CURRENCY_ROUND_UNIT = EUR:0.01
     56 TINY_AMOUNT = EUR:0.01
     57 PORT = 8081
     58 MASTER_PUBLIC_KEY = KHA6YSPRQV1ZFCF144SY8KJNR588XA8DA0F6510FKJW30DJFJNAG
     59 BASE_URL = "http://localhost:8081/"
     60 STEFAN_ABS = "EUR:5"
     61 ENABLE_KYC = YES
     62 
     63 [kyc-provider-test-oauth2]
     64 LOGIC = oauth2
     65 KYC_OAUTH2_DEBUG_MODE = YES
     66 KYC_OAUTH2_VALIDITY = forever
     67 KYC_OAUTH2_TOKEN_URL = http://localhost:6666/oauth/v2/token
     68 KYC_OAUTH2_AUTHORIZE_URL = http://localhost:6666/oauth/v2/login
     69 KYC_OAUTH2_INFO_URL = http://localhost:6666/api/user/me
     70 KYC_OAUTH2_CLIENT_ID = taler-exchange
     71 KYC_OAUTH2_CLIENT_SECRET = exchange-secret
     72 KYC_OAUTH2_POST_URL = http://example.com/
     73 KYC_OAUTH2_CONVERTER_HELPER = taler-exchange-kyc-oauth2-test-converter.sh
     74 
     75 [kyc-check-oauth-test-id]
     76 VOLUNTARY = NO
     77 # We use an external provider
     78 TYPE = LINK
     79 DESCRIPTION = "Oauth2 dummy authentication"
     80 DESCRIPTION_I18N = {}
     81 # No context requirements
     82 REQUIRES =
     83 # Measure to execute if check failed.
     84 FALLBACK = manual-freeze
     85 # This check runs on oauth2
     86 PROVIDER_ID = test-oauth2
     87 # Outputs from this check
     88 OUTPUTS = FULL_NAME DATE_OF_BIRTH
     89 
     90 [kyc-check-test-form]
     91 VOLUNTARY = NO
     92 # We use an external provider
     93 TYPE = FORM
     94 DESCRIPTION = "Test form"
     95 DESCRIPTION_I18N = {}
     96 # No context requirements
     97 REQUIRES =
     98 # Measure to execute if check failed.
     99 FALLBACK = manual-freeze
    100 # This check runs on oauth2
    101 FORM_NAME = full_name_and_birthdate
    102 # Outputs from this check
    103 OUTPUTS = FULL_NAME DATE_OF_BIRTH
    104 
    105 # This is the "default" setting for an account if
    106 # it has not yet triggered anything.
    107 [kyc-check-default]
    108 VOLUNTARY = NO
    109 TYPE = INFO
    110 DESCRIPTION = "Your account is operating normally"
    111 DESCRIPTION_I18N = {}
    112 # No context requirements
    113 REQUIRES =
    114 # Measure to execute if check failed. Well,
    115 # this check cannot really fail, but the
    116 # conservative answer is to freeze.
    117 FALLBACK = manual-freeze
    118 
    119 # If this "check" is triggered, we merely inform
    120 # the user that their account has been frozen. The
    121 # user cannot proceed manually.
    122 [kyc-check-info-frozen]
    123 VOLUNTARY = NO
    124 TYPE = INFO
    125 DESCRIPTION = "Your account is frozen pending investigation"
    126 DESCRIPTION_I18N = {}
    127 # No context requirements
    128 REQUIRES =
    129 # Measure to execute if check failed. Well,
    130 # this check cannot really fail, but we stay
    131 # where we are: frozen.
    132 FALLBACK = manual-freeze
    133 
    134 # If this "check" is triggered, we merely inform
    135 # the user that we got their oauth-test data on file.
    136 [kyc-check-info-oauth-test-passed]
    137 VOLUNTARY = NO
    138 TYPE = INFO
    139 DESCRIPTION = "You passed the OAuth2 check. Thank you."
    140 DESCRIPTION_I18N = {}
    141 # No context requirements
    142 REQUIRES =
    143 # Measure to execute if check failed. Well,
    144 # this check cannot really fail, but we stay
    145 # where we are: frozen.
    146 FALLBACK = manual-freeze
    147 
    148 [aml-program-oauth-output-check]
    149 DESCRIPTION = "Validates the output from OAauth2 and then increases all limits to EUR:1000"
    150 # Command that runs on the output of the OAuth provider
    151 # to decide what rules should apply next.
    152 COMMAND = taler-exchange-helper-measure-test-oauth
    153 # What measure to take if the COMMAND failed.
    154 FALLBACK = manual-freeze
    155 
    156 [aml-program-test-form-check]
    157 DESCRIPTION = "Validates the output from the test-form and then increases all limits to EUR:1000"
    158 # Command that runs on the output of the form
    159 # to decide what rules should apply next.
    160 COMMAND = taler-exchange-helper-measure-test-form
    161 # What measure to take if the COMMAND failed.
    162 FALLBACK = manual-freeze
    163 
    164 
    165 [kyc-measure-run-oauth]
    166 # Get client ID via the OAuth test provider
    167 CHECK_NAME = oauth-test-id
    168 # AML program to run on the output of the OAuth provider
    169 # to decide what rules should apply next.
    170 PROGRAM = oauth-output-check
    171 # Context to provide for check and program; empty.
    172 CONTEXT = {}
    173 
    174 # This is a base-measure that is being triggered
    175 # whenever something goes wrong. We freeze the
    176 # account and ask AML staff to investigate.
    177 [kyc-measure-manual-freeze]
    178 CHECK_NAME = skip
    179 # AML program that freezes the account and flags
    180 # it for investigation.
    181 PROGRAM = freeze
    182 # Context to provide for check and program; empty.
    183 CONTEXT = {}
    184 
    185 [aml-program-freeze]
    186 DESCRIPTION = "Freeze the account"
    187 COMMAND = taler-exchange-helper-measure-freeze
    188 FALLBACK = manual-freeze
    189 
    190 [kyc-rule-aggregate-any]
    191 ENABLED = YES
    192 EXPOSED = YES
    193 IS_AND_COMBINATOR = YES
    194 OPERATION_TYPE = AGGREGATE
    195 NEXT_MEASURES = run-oauth
    196 THRESHOLD = EUR:0
    197 TIMEFRAME = 1d
    198 
    199 [kyc-legitimization-withdraw]
    200 ENABLED = YES
    201 EXPOSED = YES
    202 IS_AND_COMBINATOR = YES
    203 OPERATION_TYPE = WITHDRAW
    204 NEXT_MEASURES = run-oauth
    205 THRESHOLD = EUR:20
    206 TIMEFRAME = 30d
    207 
    208 [kyc-legitimization-balance-high]
    209 ENABLED = YES
    210 EXPOSED = YES
    211 IS_AND_COMBINATOR = YES
    212 OPERATION_TYPE = BALANCE
    213 NEXT_MEASURES = run-oauth
    214 THRESHOLD = EUR:1
    215 TIMEFRAME = 1d
    216 
    217 [exchangedb-postgres]
    218 CONFIG = "postgres:///talercheck"
    219 
    220 # Account of the EXCHANGE
    221 [exchange-account-exchange]
    222 PAYTO_URI = "payto://x-taler-bank/localhost/2?receiver-name=2"
    223 ENABLE_DEBIT = YES
    224 ENABLE_CREDIT = YES
    225 
    226 [exchange-accountcredentials-exchange]
    227 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/2/taler-wire-gateway/"
    228 WIRE_GATEWAY_AUTH_METHOD = NONE
    229 
    230 [admin-accountcredentials-exchange]
    231 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/2/taler-wire-gateway/"
    232 WIRE_GATEWAY_AUTH_METHOD = NONE
    233 
    234 
    235 [coin_eur_ct_1]
    236 value = EUR:0.01
    237 duration_withdraw = 7 days
    238 duration_spend = 2 years
    239 duration_legal = 3 years
    240 fee_withdraw = EUR:0.00
    241 fee_deposit = EUR:0.00
    242 fee_refresh = EUR:0.01
    243 fee_refund = EUR:0.01
    244 rsa_keysize = 1024
    245 CIPHER = RSA
    246 
    247 [coin_eur_ct_10]
    248 value = EUR:0.10
    249 duration_withdraw = 7 days
    250 duration_spend = 2 years
    251 duration_legal = 3 years
    252 fee_withdraw = EUR:0.01
    253 fee_deposit = EUR:0.01
    254 fee_refresh = EUR:0.03
    255 fee_refund = EUR:0.01
    256 rsa_keysize = 1024
    257 CIPHER = RSA
    258 
    259 [coin_eur_1]
    260 value = EUR:1
    261 duration_withdraw = 7 days
    262 duration_spend = 2 years
    263 duration_legal = 3 years
    264 fee_withdraw = EUR:0.01
    265 fee_deposit = EUR:0.01
    266 fee_refresh = EUR:0.03
    267 fee_refund = EUR:0.01
    268 rsa_keysize = 1024
    269 CIPHER = RSA
    270 
    271 [coin_eur_5]
    272 value = EUR:5
    273 duration_withdraw = 7 days
    274 duration_spend = 2 years
    275 duration_legal = 3 years
    276 fee_withdraw = EUR:0.01
    277 fee_deposit = EUR:0.01
    278 fee_refresh = EUR:0.03
    279 fee_refund = EUR:0.01
    280 rsa_keysize = 1024
    281 CIPHER = RSA