## Script (Python) "getInterswitchParams" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=paytype,student,payment_id ##title= ## # $Id: getInterswitchParams.py 2891 2007-12-09 11:03:55Z henrik $ test = "" d = {} d['payment_possible'] = True d['pay_ship_to'] = "Federal College Okene" d['site_id'] = '83' d['site_name'] = "fceokene.waeup.org" d['currency_id'] = '566' d['type'] = 'online' d['status'] = 'started' d['surcharge'] = '150' d['payment_params'] = 'switch_college_split' if test == 'simulate': d['action'] = "%s/payments/%s/simulate_callback" % (student.absolute_url(),payment_id) #do not use simulate_callback elif test == 'test': d['action'] = "https://webpay.interswitchng.com/test_paydirect/webpay/pay.aspx" else: d['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx" if paytype in ("HOM",): d['callback_function'] = 'interswitch_acco_cb' d['pay_item_id'] = '8302' d['type_description'] = 'Hostel Maintenance Fee' d['pay_item_name'] = "FCE Okene %(type_description)s" % d d['amount'] = '4000' d['category'] = 'hostel_maintenance' d['item'] = paytype return d