merchant

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

test_kyc_api.conf (6956B)


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