source: main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/etranzact/browser.py @ 15645

Last change on this file since 15645 was 15601, checked in by Henrik Bettermann, 5 years ago

Add etranzact components for students.

  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1## $Id: browser.py 15601 2019-09-20 15:42:16Z 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
19from kofacustom.nigeria.etranzact.applicantsbrowser import (
20    EtranzactPageApplicant, EtranzactReceiveResponseApplicant,
21    EtranzactRequestPaymentStatusPageApplicant)
22from kofacustom.nigeria.etranzact.studentsbrowser import (
23    EtranzactPageStudent, EtranzactReceiveResponseStudent,
24    EtranzactRequestPaymentStatusPageStudent)
25
26# Temporarily we can use the test portal like in kofacustom.nigeria
27
28from kofacustom.nigeria.etranzact.tests import (
29    HOST, HTTPS, SECRET_KEY, TERMINAL_ID)
30
31#HOST =
32#HTTPS =
33#SECRET_KEY =
34#TERMINAL_ID =
35LOGO_URL = 'https://iuokada.waeup.org/static_custom/iou_logo.png'
36
37class CustomEtranzactPageApplicant(EtranzactPageApplicant):
38
39    host = HOST
40    https = HTTPS
41    secret_key = SECRET_KEY
42    terminal_id = TERMINAL_ID
43    logo_url = LOGO_URL
44
45class CustomEtranzactReceiveResponseApplicant(EtranzactReceiveResponseApplicant):
46
47    secret_key = SECRET_KEY
48    terminal_id = TERMINAL_ID
49
50class CustomEtranzactRequestPaymentStatusPageApplicant(
51    EtranzactRequestPaymentStatusPageApplicant):
52
53    host = HOST
54    https = HTTPS
55    secret_key = SECRET_KEY
56    terminal_id = TERMINAL_ID
57    logo_url = LOGO_URL
58
59class CustomEtranzactPageStudent(EtranzactPageStudent):
60
61    host = HOST
62    https = HTTPS
63    secret_key = SECRET_KEY
64    terminal_id = TERMINAL_ID
65    logo_url = LOGO_URL
66
67class CustomEtranzactReceiveResponseStudent(EtranzactReceiveResponseStudent):
68
69    secret_key = SECRET_KEY
70    terminal_id = TERMINAL_ID
71
72class CustomEtranzactRequestPaymentStatusPageStudent(
73    EtranzactRequestPaymentStatusPageStudent):
74
75    host = HOST
76    https = HTTPS
77    secret_key = SECRET_KEY
78    terminal_id = TERMINAL_ID
79    logo_url = LOGO_URL
80
81
82
Note: See TracBrowser for help on using the repository browser.