source: main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py @ 17516

Last change on this file since 17516 was 17516, checked in by Henrik Bettermann, 18 months ago

Set PG school fee bank account

  • Property svn:executable set to *
File size: 23.1 KB
Line 
1    # -*- coding: utf-8 -*-
2## $Id: browser.py 17429 2023-06-05 04:34:30Z henrik $
3##
4## Copyright (C) 2012 Uli Fouquet & Henrik Bettermann
5## This program is free software; you can redistribute it and/or modify
6## it under the terms of the GNU General Public License as published by
7## the Free Software Foundation; either version 2 of the License, or
8## (at your option) any later version.
9##
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty ofself.context.amount_auth
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13## GNU General Public License for more details.
14##
15## You should have received a copy of the GNU General Public License
16## along with this program; if not, write to the Free Software
17## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18##
19import httplib
20import hashlib
21import grok
22import os
23import csv
24from xml.dom import minidom
25from zope.interface import Interface
26from zope.component import queryAdapter
27from waeup.kofa.interfaces import CLEARED
28from kofacustom.nigeria.interswitch.browser import (
29    InterswitchPaymentRequestWebservicePageStudent,
30    InterswitchPaymentRequestWebservicePageApplicant,
31    InterswitchPaymentVerifyWebservicePageApplicant,
32    InterswitchPaymentVerifyWebservicePageStudent,
33    InterswitchPageStudent, InterswitchPageApplicant,
34    module_activated,
35    )
36from waeup.aaue.students.interfaces import ICustomStudentOnlinePayment
37from waeup.aaue.applicants.interfaces import ICustomApplicantOnlinePayment
38from waeup.aaue.students.utils import SFEECHANGES
39from waeup.aaue.interfaces import MessageFactory as _
40
41PRODUCT_ID = '5845'
42SITE_NAME = 'aaue.waeup.org'
43PROVIDER_ACCT = '0200244434'
44PROVIDER_BANK_ID = '11'
45PROVIDER_ITEM_NAME = 'WAeAC Portal Fee'
46INSTITUTION_NAME = 'AAU Ekpoma'
47CURRENCY = '566'
48GATEWAY_AMT = 200.0
49POST_ACTION = 'https://webpay.interswitchng.com/paydirect/pay'
50
51HOST = 'webpay.interswitchng.com'
52URL = '/paydirect/api/v1/gettransaction.json'
53HTTPS = True
54MAC = '9718FA00B0F5070B388A9896ADCED9B2FB02D30F71E12E68BDADC63F6852A3496FF97D8A0F9DA9F753B911A49BB09BB87B55FD02046BD325C74C46C0123CF023'
55
56httplib.HTTPSConnection.debuglevel = 0
57
58BANK_ACCOUNTS = {
59    'edohis':    ('1222577132', '117'),
60    'union':     ('1019763348', '7'),
61    'union_pt':  ('0051005007', '31'),
62    'sport':     ('1021941220', '7'),
63    'access':    ('1012688013', '123'),
64    'notebook':  ('4011210501', '51'),
65    'accredit':  ('5060023412', '51'),
66    'library':   ('2000122995', '8'),
67    'fac1':      ('1022438743', '7'),
68    'fac2':      ('2000249757', '8'),
69    'fac3':      ('1012678566', '123'),
70    'matricgown':('2000249757', '8'),
71    'lapel':     ('2000249757', '8'),
72    'lmsplus':   ('5060023429', '51'),
73
74    'acceptance': ('2000249757', '8'),
75
76    'hostel_maintenance': ('1006406795', '123'),
77    'bed_allocation':     ('1006406795', '123'),
78    'late_registration':  ('5210006575', '51'),
79    'ent_combined':       ('6220029828', '51'),
80    'ent_registration_0': ('6220029828', '51'),
81    'ent_registration_1': ('6220029828', '51'),
82    'ent_registration_2': ('6220029828', '51'),
83    'ent_text_book_0':    ('6220029828', '51'),
84    'ent_text_book_1':    ('6220029828', '51'),
85    'ent_text_book_2':    ('6220029828', '51'),
86    'gst_registration_1': ('1010893123', '117'),
87    'gst_registration_2': ('1010893123', '117'),
88    'gst_text_book_0':    ('1010893123', '117'),
89    'gst_text_book_1':    ('1010893123', '117'),
90    'gst_text_book_2':    ('1010893123', '117'),
91    'gst_text_book_3':    ('1010893123', '117'),
92
93    'postgrad': ('1010827641', '117'),
94    }
95
96FEE_NAMES = {
97    'edohis':     'Edo State Health Insurance Scheme',
98    'union':      'Student Union Dues',
99    'union_pt':   'Student Union Dues Part-Time',
100    'sport':      'Sport Development Fee',
101    'access':     'Access Card Fee',
102    'notebook':   'Branded Notebook',
103    'accredit':   'Accreditation Fee',
104    'library':    'Library Development Fee',
105    'tuition':    'Tuition',
106    'acceptance': 'Acceptance Fee',
107    'matricgown': 'Matriculation Gown Fee',
108    'lapel':      'File/Lapel Fee',
109    'lmsplus':    'LMS Plus Fee',
110    'nuga':       'NUGA Fee',
111    }
112
113
114SCHOOLFEES = dict()
115
116for year in SFEECHANGES:
117    schoolfees_path = os.path.join(
118        os.path.dirname(__file__), '../students/schoolfees_%s.csv' %year)
119    reader = csv.DictReader(open(schoolfees_path, 'rb'))
120    SCHOOLFEES[year] = {item['code']:item for item in reader}
121
122acceptancefees_path = os.path.join(
123    os.path.dirname(__file__), '../students/acceptancefees.csv')
124reader = csv.DictReader(open(acceptancefees_path, 'rb'))
125ACCEPTANCEFEES = {item['code']:item for item in reader}
126
127class CustomInterswitchPageApplicant(InterswitchPageApplicant):
128    """ View which sends a POST request to the Interswitch
129    CollegePAY payment gateway.
130
131    So far only PT application has been configured.
132    """
133    grok.context(ICustomApplicantOnlinePayment)
134    action = POST_ACTION
135    site_name = SITE_NAME
136    currency = CURRENCY
137    provider_bank_id = PROVIDER_BANK_ID
138    provider_acct = PROVIDER_ACCT
139    pay_item_id = '101'
140    product_id = PRODUCT_ID
141
142    def update(self):
143        if not module_activated(
144            self.context.__parent__.__parent__.year, self.context):
145            self.flash(_('Forbidden'), type='danger')
146            self.redirect(self.url(self.context, '@@index'))
147            return
148        error = self.init_update()
149        if error:
150            self.flash(error, type='danger')
151            self.redirect(self.url(self.context, '@@index'))
152            return
153        # Already now it becomes an Interswitch payment. We set the net amount
154        # and add the gateway amount.
155        if not self.context.r_company:
156            self.context.net_amt = self.context.amount_auth
157            self.context.amount_auth += GATEWAY_AMT
158            self.context.gateway_amt = GATEWAY_AMT
159            self.context.r_company = u'interswitch'
160        xmldict = {}
161        provider_amt = 2000.0
162        if self.applicant.__parent__.code in ('ver2019', 'send2019'):
163            provider_amt = 0.0
164        elif self.applicant.__parent__.code.startswith('cert'):
165            provider_amt = 3000.0
166        elif self.applicant.__parent__.code.startswith('trans'):
167            provider_amt = 3000.0
168        xmldict['institution_acct'] = '1012332141'
169        xmldict['institution_bank_id'] = '123'
170        if self.applicant.applicant_id.startswith('dsh'):
171            xmldict['institution_acct'] = '1014847058'
172            xmldict['institution_bank_id'] = '7'
173        if self.applicant.applicant_id.startswith('ijmbe'):
174            xmldict['institution_acct'] = '1012278272'
175            xmldict['institution_bank_id'] = '123'
176        xmldict['detail_ref'] = self.context.p_id
177        xmldict['provider_amt'] = 100 * provider_amt
178        xmldict['provider_acct'] = PROVIDER_ACCT
179        xmldict['provider_bank_id'] = PROVIDER_BANK_ID
180        if 'alumni' in self.application_url():
181            xmldict['provider_acct'] = '0427773399'
182            xmldict['provider_bank_id'] = '10'
183        xmldict['provider_item_name'] = PROVIDER_ITEM_NAME
184        xmldict['institution_item_name'] = self.context.category
185        xmldict['institution_name'] = INSTITUTION_NAME
186        xmldict['institution_amt'] = 100 * self.context.net_amt
187        if not self.context.provider_amt:
188            self.context.provider_amt = provider_amt
189            self.context.amount_auth += provider_amt
190        if provider_amt:
191            xmltext = """<payment_item_detail>
192<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s">
193<item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" />
194<item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
195</item_details>
196</payment_item_detail>""" % xmldict
197        else:
198            xmltext = """<payment_item_detail>
199<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s">
200<item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" />
201</item_details>
202</payment_item_detail>""" % xmldict
203
204        # Overwrite above configuration
205        if self.applicant.__parent__.code in ('cert1', 'cert2', 'cert6', 'cert9'):
206            xmldict['institution_amt'] = 100 * self.context.net_amt - 100000
207            xmltext = """<payment_item_detail>
208<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s">
209<item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" />
210<item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
211<item_detail item_id="3" item_name="Ambrose Alli Foundation" item_amt="100000" bank_id="117" acct_num="1015567975" />
212</item_details>
213</payment_item_detail>""" % xmldict
214
215        self.xml_data = """<input type="hidden" name="xml_data" value='%s'  />""" % xmltext
216        xmlitems = ''
217        xmldoc = minidom.parseString(xmltext)
218        itemlist = xmldoc.getElementsByTagName('item_detail')
219        for s in itemlist:
220            xmlitems += "%s (%s %s, %s (%s)),  " % (
221                s.attributes['item_name'].value,
222                u'\u20a6',
223                int(s.attributes['item_amt'].value)/100,
224                s.attributes['acct_num'].value,
225                s.attributes['bank_id'].value,
226                )
227        self.context.p_split_data = xmlitems
228        self.amount_auth = int(100 * self.context.amount_auth)
229        hashargs = (
230            self.context.p_id +
231            PRODUCT_ID +
232            self.pay_item_id +
233            str(int(self.amount_auth)) +
234            self.site_redirect_url +
235            MAC)
236        self.hashvalue = hashlib.sha512(hashargs).hexdigest()
237        return
238
239class CustomInterswitchPageStudent(InterswitchPageStudent):
240    """ View which sends a POST request to the Interswitch
241    CollegePAY payment gateway.
242    """
243    grok.context(ICustomStudentOnlinePayment)
244    action = POST_ACTION
245    site_name = SITE_NAME
246    currency = CURRENCY
247    pay_item_id = '101'
248    product_id = PRODUCT_ID
249
250    def update(self):
251        if not module_activated(
252            self.context.student.current_session, self.context):
253            self.flash(_('Forbidden'), type='danger')
254            self.redirect(self.url(self.context, '@@index'))
255            return
256        error = self.init_update()
257        if error:
258            self.flash(error, type='danger')
259            self.redirect(self.url(self.context, '@@index'))
260            return
261        student = self.student
262        category = self.context.p_category
263        # To guarantee that cleared students pay both acceptance fee
264        # and school fees, the page can only be accessed
265        # for school fee payments if acceptance/clearance fee has
266        # been successfully queried/paid beforehand. This
267        # requirement applies to students in state 'cleared' and
268        # entry_session greater than 2012 only.
269        if self.context.p_category.startswith('schoolfee') and \
270            student.state == CLEARED and \
271            student.entry_session > 2012:
272            acceptance_fee_paid = False
273            for ticket in student['payments'].values():
274                if ticket.p_state == 'paid' and \
275                    ticket.p_category.startswith('clearance'):
276                    acceptance_fee_paid = True
277                    break
278            if not acceptance_fee_paid:
279                self.flash(
280                    _('Please pay acceptance fee first.'), type="danger")
281                self.redirect(self.url(self.context, '@@index'))
282                return
283        # Already now it becomes an Interswitch payment. We set the net amount
284        # and add the gateway amount.
285        if not self.context.r_company:
286            self.context.net_amt = self.context.amount_auth
287            self.context.amount_auth += GATEWAY_AMT
288            self.context.gateway_amt = GATEWAY_AMT
289            self.context.r_company = u'interswitch'
290        xmldict = self.xmldict
291        # Provider data
292        xmldict['detail_ref'] = self.context.p_id
293        xmldict['provider_acct'] = PROVIDER_ACCT
294        xmldict['provider_bank_id'] = PROVIDER_BANK_ID
295        xmldict['provider_item_name'] = PROVIDER_ITEM_NAME
296        # Institution data
297        xmldict['institution_acct'] = '00000000'
298        xmldict['institution_bank_id'] = '00'
299        provider_amt = 0.0
300        if category.startswith('clearance'):
301            provider_amt = 1500.0
302        elif category.startswith('hostel_maintenance'):
303            provider_amt = 1000.0
304        elif category in ('schoolfee', 'schoolfee_1', 'schoolfee_incl'):
305            provider_amt = 2500.0
306        xmldict['provider_amt'] = 100 * provider_amt
307        xmldict['institution_item_name'] = self.context.category
308        xmldict['institution_name'] = INSTITUTION_NAME
309        xmldict['institution_amt'] = 100 * self.context.net_amt
310        if not self.context.provider_amt:
311            self.context.provider_amt = provider_amt
312            self.context.amount_auth += provider_amt
313        xmltext = ''
314
315        # School fee
316        if category.startswith('schoolfee'):
317            # collect additional fees
318            if self.context.p_category in ('schoolfee_1', 'schoolfee_incl'):
319                xmltext = """<payment_item_detail>
320<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">""" % xmldict
321                item_id = 1
322
323                if student.entry_session < 2013:
324                    sorted_items = SCHOOLFEES[12][student.certcode].items()
325                elif student.entry_session < 2014:
326                    sorted_items = SCHOOLFEES[13][student.certcode].items()
327                elif student.entry_session < 2015:
328                    sorted_items = SCHOOLFEES[14][student.certcode].items()
329                elif student.entry_session < 2020:
330                    sorted_items = SCHOOLFEES[15][student.certcode].items()
331                elif student.entry_session < 2021:
332                    sorted_items = SCHOOLFEES[20][student.certcode].items()
333                elif student.entry_session < 2022:
334                    sorted_items = SCHOOLFEES[21][student.certcode].items()
335                else:
336                    sorted_items = SCHOOLFEES[22][student.certcode].items()
337                sorted_items.insert(0, sorted_items.pop(4))
338                for item in sorted_items:
339                    try:
340                        if  item[1].startswith('100_') and student.state == CLEARED:
341                            # first year payment only
342                            item_amt = 100 * int(item[1].split('_')[1])
343                        else:
344                            item_amt = 100 * int(item[1])
345                        if self.context.p_category == 'schoolfee_1' and item[0] == 'tuition':
346                            item_amt /= 2
347                        acct_num = ''
348                        bank_id = ''
349                        item_name = ''
350                        # Find appropriate bank
351                        try:
352                            bank = BANK_ACCOUNTS[item[0]]
353                        except: # transfer to faculty account
354                            if student.is_postgrad:
355                                bank = BANK_ACCOUNTS['postgrad']
356                            elif student.faccode in ('FAG', 'FAT', 'FBM', 'FMLS', 'fac1'):
357                                bank = BANK_ACCOUNTS['fac1']
358                            elif student.faccode in ('FCS', 'FED', 'FES', 'FET'):
359                                bank = BANK_ACCOUNTS['fac2']
360                            elif student.faccode in ('FLS', 'FLW', 'FMS', 'FPS', 'FSS'):
361                                bank = BANK_ACCOUNTS['fac3']
362                        acct_num = bank[0]
363                        bank_id = bank[1]
364                        item_name = FEE_NAMES[item[0]]
365                        xmltext += """
366<item_detail item_id="%s" item_name="%s" item_amt="%d" bank_id="%s" acct_num="%s" />""" % (item_id, item_name, item_amt, bank_id, acct_num)
367                        item_id += 1
368                    except:
369                        pass
370                xmldict['item_id'] = item_id
371                xmltext += """
372<item_detail item_id="%(item_id)d" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
373</item_details>
374</payment_item_detail>""" % xmldict
375            # no additional charges, determine faculty bank only
376            else:
377                if student.is_postgrad:
378                    bank = BANK_ACCOUNTS['postgrad']
379                elif student.faccode in ('FAG', 'FAT', 'FBM', 'FMLS', 'fac1'):
380                    bank = BANK_ACCOUNTS['fac1']
381                elif student.faccode in ('FCS', 'FED', 'FES', 'FET'):
382                    bank = BANK_ACCOUNTS['fac2']
383                elif student.faccode in ('FLS', 'FLW', 'FMS', 'FPS', 'FSS'):
384                    bank = BANK_ACCOUNTS['fac3']
385                xmldict['institution_acct'] = bank[0]
386                xmldict['institution_bank_id'] = bank[1]
387
388
389        # Clearance (acceptance) fee
390
391        elif category.startswith('clearance'):
392            # collect additional fees
393            if self.context.p_category == 'clearance_incl':
394                xmltext = """<payment_item_detail>
395<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">""" % xmldict
396                item_id = 1
397                for item in ACCEPTANCEFEES[student.certcode].items():
398                    try:
399                        item_amt = 100 * int(item[1])
400                        bank = BANK_ACCOUNTS[item[0]]
401                        acct_num = bank[0]
402                        bank_id = bank[1]
403                        item_name = FEE_NAMES[item[0]]
404                        xmltext += """
405<item_detail item_id="%s" item_name="%s" item_amt="%d" bank_id="%s" acct_num="%s" />""" % (item_id, item_name, item_amt, bank_id, acct_num)
406                        item_id += 1
407                    except:
408                        pass
409                xmldict['item_id'] = item_id
410                xmltext += """
411<item_detail item_id="%(item_id)d" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
412</item_details>
413</payment_item_detail>""" % xmldict
414            # no additional charges, determine faculty bank only
415            else:
416                if student.is_postgrad:
417                    bank = BANK_ACCOUNTS['postgrad']
418                else:
419                    bank = BANK_ACCOUNTS['acceptance']
420                xmldict['institution_acct'] = bank[0]
421                xmldict['institution_bank_id'] = bank[1]
422
423        # Hostel Maintenance
424
425        elif category == 'hostel_maintenance':
426            xmldict['institution_amt'] = 100 * self.context.net_amt - 1000000
427            bank = BANK_ACCOUNTS[category]
428            xmldict['institution_acct'] = bank[0]
429            xmldict['institution_bank_id'] = bank[1]
430            xmltext = """<payment_item_detail>
431<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
432<item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" />
433<item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
434<item_detail item_id="3" item_name="Hostel Consumable Fee" item_amt="1000000" bank_id="123" acct_num="1012332141" />
435</item_details>
436</payment_item_detail>""" % xmldict
437
438        # Other fees
439
440        elif category in BANK_ACCOUNTS.keys():
441            bank = BANK_ACCOUNTS[category]
442            xmldict['institution_acct'] = bank[0]
443            xmldict['institution_bank_id'] = bank[1]
444
445        if not xmltext and provider_amt == 0:
446            xmltext = """<payment_item_detail>
447<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
448<item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" />
449</item_details>
450</payment_item_detail>""" % xmldict
451        elif not xmltext:
452            xmltext = """<payment_item_detail>
453<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
454<item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" />
455<item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
456</item_details>
457</payment_item_detail>""" % xmldict
458        self.xml_data = """<input type="hidden" name="xml_data" value='%s'  />""" % xmltext
459        xmlitems = ''
460        xmldoc = minidom.parseString(xmltext)
461        itemlist = xmldoc.getElementsByTagName('item_detail')
462        for s in itemlist:
463            xmlitems += "%s (%s %s, %s (%s)),  " % (
464                s.attributes['item_name'].value,
465                u'\u20a6',
466                int(s.attributes['item_amt'].value)/100,
467                s.attributes['acct_num'].value,
468                s.attributes['bank_id'].value,
469                )
470        self.context.p_split_data = xmlitems
471        self.context.provider_amt = provider_amt
472        self.amount_auth = int(100 * self.context.amount_auth)
473        hashargs = (
474            self.context.p_id +
475            PRODUCT_ID +
476            self.pay_item_id +
477            str(int(self.amount_auth)) +
478            self.site_redirect_url +
479            MAC)
480        self.hashvalue = hashlib.sha512(hashargs).hexdigest()
481        return
482
483
484class CustomInterswitchPaymentRequestWebservicePageApplicant(
485    InterswitchPaymentRequestWebservicePageApplicant):
486    """Request webservice view for the CollegePAY gateway
487    """
488    grok.context(ICustomApplicantOnlinePayment)
489    gateway_host = HOST
490    gateway_url = URL
491    https = HTTPS
492    mac = MAC
493    product_id = PRODUCT_ID
494
495class CustomInterswitchPaymentVerifyWebservicePageApplicant(
496    InterswitchPaymentVerifyWebservicePageApplicant):
497    """Payment verify view for the CollegePAY gateway
498    """
499    grok.context(ICustomApplicantOnlinePayment)
500    gateway_host = HOST
501    gateway_url = URL
502    https = HTTPS
503    mac = MAC
504    product_id = PRODUCT_ID
505
506class CustomInterswitchPaymentRequestWebservicePageStudent(
507    InterswitchPaymentRequestWebservicePageStudent):
508    """Request webservice view for the CollegePAY gateway
509    """
510    grok.context(ICustomStudentOnlinePayment)
511    gateway_host = HOST
512    gateway_url = URL
513    https = HTTPS
514    mac = MAC
515    product_id = PRODUCT_ID
516
517class CustomInterswitchPaymentVerifyWebservicePageStudent(
518    InterswitchPaymentVerifyWebservicePageStudent):
519    """Payment verify view for the CollegePAY gateway
520    """
521    grok.context(ICustomStudentOnlinePayment)
522    gateway_host = HOST
523    gateway_url = URL
524    https = HTTPS
525    mac = MAC
526    product_id = PRODUCT_ID
Note: See TracBrowser for help on using the repository browser.