Last change
on this file since 3629 was
3626,
checked in by Henrik Bettermann, 16 years ago
|
update
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Rev | Line | |
---|
[2857] | 1 | ## Script (Python) "getInterswitchParams" |
---|
| 2 | ##bind container=container |
---|
| 3 | ##bind context=context |
---|
| 4 | ##bind namespace= |
---|
| 5 | ##bind script=script |
---|
| 6 | ##bind subpath=traverse_subpath |
---|
[3626] | 7 | ##parameters=paytype,student,payment_id,student_record |
---|
[2857] | 8 | ##title= |
---|
| 9 | ## |
---|
| 10 | # $Id: getInterswitchParams.py 3626 2008-08-17 08:07:34Z henrik $ |
---|
| 11 | |
---|
[2891] | 12 | test = "" |
---|
[2857] | 13 | d = {} |
---|
[2891] | 14 | d['payment_possible'] = True |
---|
[2857] | 15 | d['pay_ship_to'] = "Federal College Okene" |
---|
| 16 | |
---|
| 17 | d['site_id'] = '83' |
---|
| 18 | d['site_name'] = "fceokene.waeup.org" |
---|
| 19 | d['currency_id'] = '566' |
---|
[2891] | 20 | d['type'] = 'online' |
---|
| 21 | d['status'] = 'started' |
---|
[2857] | 22 | d['surcharge'] = '150' |
---|
| 23 | if test == 'simulate': |
---|
[2891] | 24 | d['action'] = "%s/payments/%s/simulate_callback" % (student.absolute_url(),payment_id) #do not use simulate_callback |
---|
[2857] | 25 | elif test == 'test': |
---|
[2891] | 26 | d['action'] = "https://webpay.interswitchng.com/test_paydirect/webpay/pay.aspx" |
---|
[2857] | 27 | else: |
---|
| 28 | d['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx" |
---|
| 29 | if paytype in ("HOM",): |
---|
[3240] | 30 | d['callback_function'] = 'interswitch_cb' |
---|
[2968] | 31 | d['pay_item_id'] = '8300' |
---|
[2891] | 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 |
---|
[3012] | 37 | #d['payment_params'] = 'switch_college_split' |
---|
| 38 | d['payment_params'] = '0' |
---|
[2857] | 39 | |
---|
| 40 | return d |
---|
Note: See
TracBrowser for help on using the repository browser.