-
Notifications
You must be signed in to change notification settings - Fork 21
/
settings_local.py
56 lines (40 loc) · 1.64 KB
/
settings_local.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- coding: utf-8 -*-
"""
Settings for the hello scripts.
You most likely need to edit a few of them, e.g. API_HOST and the OAuth
credentials.
"""
# Get the OAuth credentials prior from the API, e.g.
# https://apisandbox.openbankproject.com/consumer-registration
CLIENT_KEY = 'f1uy0xn3nbg2aafb4gploc5fs05jlv1uuqeofc5b'
CLIENT_SECRET = '5r14kqz1n2ahnobdljlrqpa2duqwk1l44vhhvcez'
# URL you are redirected to when OAuth has succeeded. Doesn't need to exist for
# the example scripts.
# REDIRECT_URL = 'https://www.example.com'
REDIRECT_URL = 'http://www.bbc.co.uk/news'
# API host to talk to
API_HOST = 'http://127.0.0.1:8080'
#API_HOST = 'https://apisandbox.openbankproject.com'
#API_HOST = 'https://citizensbank.openbankproject.com'
# API version to use
API_VERSION = '3.0.0'
# API BASE URL
API_BASE_URL = '{}/obp/v{}'.format(API_HOST, API_VERSION)
# For the current user (hack)
API_USER_URL = '{}/obp/v{}/users/current'.format(API_HOST, API_VERSION)
# For initial testing, you might want to get some sample data:
# https://raw.githubusercontent.com/OpenBankProject/OBP-API/develop/src/main/scala/code/api/sandbox/example_data/example_import.json
# The account data below was taken from there
# My bank we want to send money from
MY_BANK = 'gh.29.uk'
# My account is picked automatically at the moment
# MY_ACCOUNT = ''
# The counterparty we want to send money to
COUNTERPARTY_BANK = 'gh.29.uk'
COUNTERPARTY_ACCOUNT_ID = '8ca8a7e4-6d02-48e3-a029-0b2bf89de9f0'
# Currency used for payment
PAYMENT_CURRENCY = 'GBP'
# Payment value to transfer; values < 100 will not be challenged
PAYMENT_VALUE = '0.01'
# Payment description
PAYMENT_DESCRIPTION = 'Hello Payments v1.4!'