-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
39 lines (32 loc) · 1.03 KB
/
config.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
dev = True
retries = 20
timeout_at_too_many_requests = 0.5
normal_timeout = 0.15
#could try to set this to 3 if checkout errors because of too fast checkouts occur
checkout_delay = 0
class Product:
def __init__(self, type, keywords, amount):
self.type = type.lower()
self.keywords = keywords
self.amount = amount
def __repr__(self):
return self.type + " " + str(self.keywords) + " " + str(self.amount)
products = [
Product("jacket", [ " " ], 1 ),
Product("bag", [ " " ], 1 ),
Product("sweatshirt", [ " " ], 1 ),
]
keys = {
"name": "John Fisher",
"email": "[email protected]",
"phone": "6789998212",
"address": "Forest Hills Dr.",
"city": "Timbuktu",
"zip": "91601",
"country": 14, # is Germany
"card_cvv": "666",
"card_number": "5168441223630339 ",
"exp_month": 12,
"exp_year": 1, # 1 is 2020, 10 2030 -> select accoardingly
"card_type": 3, # 1: Visa, 2: American Express, 3: Mastercard, 4: Solo, 5: PayPal
}