source: WAeUP_SRP/fceokene/waeup_custom/getInterswitchParams.py @ 2988

Last change on this file since 2988 was 2968, checked in by Henrik Bettermann, 17 years ago

use correct pay_item_id

  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
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
8##title=
9##
10# $Id: getInterswitchParams.py 2968 2007-12-28 21:37:15Z 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'
23d['payment_params'] = 'switch_college_split'
24if test == 'simulate':
25    d['action'] = "%s/payments/%s/simulate_callback" % (student.absolute_url(),payment_id) #do not use simulate_callback
26elif test == 'test':
27    d['action'] = "https://webpay.interswitchng.com/test_paydirect/webpay/pay.aspx"
28else:
29    d['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx"
30if paytype in ("HOM",):
31    d['callback_function'] = 'interswitch_acco_cb'
32    d['pay_item_id'] = '8300'
33    d['type_description'] = 'Hostel Maintenance Fee'
34    d['pay_item_name'] = "FCE Okene %(type_description)s" % d
35    d['amount'] = '4000'
36    d['category'] = 'hostel_maintenance'
37    d['item'] = paytype
38
39return d
Note: See TracBrowser for help on using the repository browser.