Changeset 3748 for WAeUP_SRP


Ignore:
Timestamp:
31 Oct 2008, 07:47:25 (16 years ago)
Author:
Henrik Bettermann
Message:

fix Interswich form and script for FCEOyo

Location:
WAeUP_SRP/trunk/skins/waeup_fceoyo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_fceoyo/goto_interswitch_form.pt

    r3714 r3748  
    1212          <input type="hidden" tal:attributes="name python:arg[0];value python:arg[1]" />
    1313      </span>         
     14     
     15      <span tal:replace = "structure info/xml_data" />
     16     
    1417        <table>
    1518          <tr>
     
    4245               class="standalone"
    4346               name="goto_bank"
    44                value="Proceed to Payment Gateway"
     47               value="Proceed to Interswitch Payment Gateway"
    4548               />
    4649      </form>
  • WAeUP_SRP/trunk/skins/waeup_fceoyo/pay_interswitch.py

    r3743 r3748  
    7171info['order_id'] = "%s%s" % (student_id[1:],timestamp)
    7272p_id = "p%s" % timestamp
    73 
     73info['surcharge'] = interswitch_amount = 300
     74info['amount'] = amount = fee_dict['all']
    7475
    7576if student_id is None:
     
    109110                                                                  p_id)
    110111                                                                 
    111 info['amount'] = amount = fee_dict['all']
     112
    112113                                                         
    113114
     
    128129bt_amount = 1750
    129130fceoyo_split = 750
    130 info['surcharge'] = interswitch_amount = 300
     131
    131132#getSchoolFee provides pure school fee, the fees have to be added
    132133total_amount = 100* (amount + interswitch_amount + bt_amount + fceoyo_split)       
     
    137138xmldict['department'] = student_record.department
    138139xmldict['faculty'] = student_record.faculty
    139 xmldict['amount'] = "%d" % 100*amount
    140 xmldict['bt_amount'] = "%d" % 100*bt_amount
     140xmldict['amount'] = "%d" % int(100*amount)
     141xmldict['bt_amount'] = "%d" % int(100*bt_amount)
    141142
    142143if student_record.mode in ('ug_sw','prence',):
     
    150151    xmldict['bank_id'] = '0'
    151152
    152 xmldict['fceoyo_split'] = "%d" % 100*fceoyo_split
     153xmldict['fceoyo_split'] = "%d" % int(100*fceoyo_split)
     154
    153155
    154156xmltext = """<payment_item_detail>
    155 <item_details detail_ref="%(detail_ref)s" college="fceoyo" department="%(department)s" faculty="%(faculty)s">
    156 <item_detail item_id="1" item_name="fceoyo" item_amt="%(amount)s" bank_id="%(bank_id)s" acct_num="%(fceoyo_acct)s" />
    157 <item_detail item_id="2" item_name="fceoyo_split" item_amt="%(fceoyo_split)s" bank_id="125" acct_num="1681001000119" />
    158 <item_detail item_id="2" item_name="BT" item_amt="%(bt_amount)s" bank_id="89" acct_num="0061001000021095" />
     157<item_details detail_ref="%(detail_ref)s" college="fceoyo" department="%(department)s" faculty="%(faculty)s" >
     158<item_detail item_id="1" item_name="FCEOyo School Fee" item_amt="%(amount)s" bank_id="%(bank_id)s" acct_num="%(fceoyo_acct)s" />
     159<item_detail item_id="2" item_name="FCEOyo Split" item_amt="%(fceoyo_split)s" bank_id="125" acct_num="1681001000119" />
     160<item_detail item_id="3" item_name="BT" item_amt="%(bt_amount)s" bank_id="89" acct_num="0061001000021095" />
    159161</item_details>
    160162</payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.