source: WAeUP_SRP/trunk/skins/waeup_unilorin/getInterswitchParams.py @ 6086

Last change on this file since 6086 was 3690, checked in by Henrik Bettermann, 16 years ago

Move all customized skins into trunk. The waeup_custom skin together with the default profile is the BASE configuration which is identical to the Uniben set-up.

File size: 1.2 KB
RevLine 
[3690]1## Script (Python) "getInterswitchParams"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=paytype,student,payment_id,student_record
8##title=
9##
10# $Id: getInterswitchParams.py 3627 2008-08-17 08:07:44Z henrik $
11
12test = ""
13d = {}
14d['payment_possible'] = True
15d['pay_ship_to'] = "Federal College Okene"
16
17d['site_id'] = '83'
18d['site_name'] = "fceokene.waeup.org"
19d['currency_id'] = '566'
20d['type'] = 'online'
21d['status'] = 'started'
22d['surcharge'] = '150'
23if test == 'simulate':
24    d['action'] = "%s/payments/%s/simulate_callback" % (student.absolute_url(),payment_id) #do not use simulate_callback
25elif test == 'test':
26    d['action'] = "https://webpay.interswitchng.com/test_paydirect/webpay/pay.aspx"
27else:
28    d['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx"
29if paytype in ("HOM",):
30    d['callback_function'] = 'interswitch_cb'
31    d['pay_item_id'] = '8300'
32    d['type_description'] = 'Hostel Maintenance Fee'
33    d['pay_item_name'] = "FCE Okene %(type_description)s" % d
34    d['amount'] = '4000'
35    d['category'] = 'hostel_maintenance'
36    d['item'] = paytype
37    #d['payment_params'] = 'switch_college_split'
38    d['payment_params'] = '0'
39
40return d
Note: See TracBrowser for help on using the repository browser.