1 | ## $Id: browser.py 15733 2019-11-01 11:14:14Z henrik $ |
---|
2 | ## |
---|
3 | ## Copyright (C) 2017 Uli Fouquet & Henrik Bettermann |
---|
4 | ## This program is free software; you can redistribute it and/or modify |
---|
5 | ## it under the terms of the GNU General Public License as published by |
---|
6 | ## the Free Software Foundation; either version 2 of the License, or |
---|
7 | ## (at your option) any later version. |
---|
8 | ## |
---|
9 | ## This program is distributed in the hope that it will be useful, |
---|
10 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | ## GNU General Public License for more details. |
---|
13 | ## |
---|
14 | ## You should have received a copy of the GNU General Public License |
---|
15 | ## along with this program; if not, write to the Free Software |
---|
16 | ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
17 | ## |
---|
18 | |
---|
19 | from kofacustom.nigeria.etranzact.applicantsbrowser import ( |
---|
20 | EtranzactPageApplicant, EtranzactReceiveResponseApplicant, |
---|
21 | EtranzactRequestPaymentStatusPageApplicant) |
---|
22 | from kofacustom.nigeria.etranzact.studentsbrowser import ( |
---|
23 | EtranzactPageStudent, EtranzactReceiveResponseStudent, |
---|
24 | EtranzactRequestPaymentStatusPageStudent) |
---|
25 | from kofacustom.nigeria.etranzact.payoutletbrowser import ( |
---|
26 | EtranzactQueryHistoryPageStudent, EtranzactQueryHistoryPageApplicant) |
---|
27 | |
---|
28 | # Temporarily we can use the test portal like in kofacustom.nigeria |
---|
29 | |
---|
30 | from kofacustom.nigeria.etranzact.tests import ( |
---|
31 | HOST, HTTPS, SECRET_KEY, TERMINAL_ID) |
---|
32 | |
---|
33 | #HOST = |
---|
34 | #HTTPS = |
---|
35 | #SECRET_KEY = |
---|
36 | #TERMINAL_ID = |
---|
37 | LOGO_URL = 'https://iuokada.waeup.org/static_custom/iou_logo.png' |
---|
38 | |
---|
39 | class CustomEtranzactPageApplicant(EtranzactPageApplicant): |
---|
40 | |
---|
41 | host = HOST |
---|
42 | https = HTTPS |
---|
43 | secret_key = SECRET_KEY |
---|
44 | terminal_id = TERMINAL_ID |
---|
45 | logo_url = LOGO_URL |
---|
46 | |
---|
47 | class CustomEtranzactReceiveResponseApplicant(EtranzactReceiveResponseApplicant): |
---|
48 | |
---|
49 | secret_key = SECRET_KEY |
---|
50 | terminal_id = TERMINAL_ID |
---|
51 | |
---|
52 | class CustomEtranzactRequestPaymentStatusPageApplicant( |
---|
53 | EtranzactRequestPaymentStatusPageApplicant): |
---|
54 | |
---|
55 | host = HOST |
---|
56 | https = HTTPS |
---|
57 | secret_key = SECRET_KEY |
---|
58 | terminal_id = TERMINAL_ID |
---|
59 | logo_url = LOGO_URL |
---|
60 | |
---|
61 | class CustomEtranzactPageStudent(EtranzactPageStudent): |
---|
62 | |
---|
63 | host = HOST |
---|
64 | https = HTTPS |
---|
65 | secret_key = SECRET_KEY |
---|
66 | terminal_id = TERMINAL_ID |
---|
67 | logo_url = LOGO_URL |
---|
68 | |
---|
69 | class CustomEtranzactReceiveResponseStudent(EtranzactReceiveResponseStudent): |
---|
70 | |
---|
71 | secret_key = SECRET_KEY |
---|
72 | terminal_id = TERMINAL_ID |
---|
73 | |
---|
74 | class CustomEtranzactRequestPaymentStatusPageStudent( |
---|
75 | EtranzactRequestPaymentStatusPageStudent): |
---|
76 | |
---|
77 | host = HOST |
---|
78 | https = HTTPS |
---|
79 | secret_key = SECRET_KEY |
---|
80 | terminal_id = TERMINAL_ID |
---|
81 | logo_url = LOGO_URL |
---|
82 | |
---|
83 | class CustomEtranzactQueryHistoryPageStudent(EtranzactQueryHistoryPageStudent): |
---|
84 | """ Query history of Etranzact payments |
---|
85 | """ |
---|
86 | terminal_id = TERMINAL_ID |
---|
87 | host = HOST |
---|
88 | https = HTTPS |
---|
89 | |
---|
90 | class CustomEtranzactQueryHistoryPageApplicant(EtranzactQueryHistoryPageApplicant): |
---|
91 | """ Query history of Etranzact payments |
---|
92 | """ |
---|
93 | terminal_id = TERMINAL_ID |
---|
94 | host = HOST |
---|
95 | https = HTTPS |
---|