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

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

Customize Payoutlet stuff.

  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
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
19from kofacustom.nigeria.etranzact.applicantsbrowser import (
20    EtranzactPageApplicant, EtranzactReceiveResponseApplicant,
21    EtranzactRequestPaymentStatusPageApplicant)
22from kofacustom.nigeria.etranzact.studentsbrowser import (
23    EtranzactPageStudent, EtranzactReceiveResponseStudent,
24    EtranzactRequestPaymentStatusPageStudent)
25from kofacustom.nigeria.etranzact.payoutletbrowser import (
26    EtranzactQueryHistoryPageStudent, EtranzactQueryHistoryPageApplicant)
27
28# Temporarily we can use the test portal like in kofacustom.nigeria
29
30from kofacustom.nigeria.etranzact.tests import (
31    HOST, HTTPS, SECRET_KEY, TERMINAL_ID)
32
33#HOST =
34#HTTPS =
35#SECRET_KEY =
36#TERMINAL_ID =
37LOGO_URL = 'https://iuokada.waeup.org/static_custom/iou_logo.png'
38
39class 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
47class CustomEtranzactReceiveResponseApplicant(EtranzactReceiveResponseApplicant):
48
49    secret_key = SECRET_KEY
50    terminal_id = TERMINAL_ID
51
52class 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
61class 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
69class CustomEtranzactReceiveResponseStudent(EtranzactReceiveResponseStudent):
70
71    secret_key = SECRET_KEY
72    terminal_id = TERMINAL_ID
73
74class 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
83class CustomEtranzactQueryHistoryPageStudent(EtranzactQueryHistoryPageStudent):
84    """ Query history of Etranzact payments
85    """
86    terminal_id = TERMINAL_ID
87    host = HOST
88    https = HTTPS
89
90class CustomEtranzactQueryHistoryPageApplicant(EtranzactQueryHistoryPageApplicant):
91    """ Query history of Etranzact payments
92    """
93    terminal_id = TERMINAL_ID
94    host = HOST
95    https = HTTPS
Note: See TracBrowser for help on using the repository browser.