Ignore:
Timestamp:
14 Mar 2012, 15:39:49 (13 years ago)
Author:
Henrik Bettermann
Message:

Interswitch expects amount * 100

Update locales.

Location:
main/waeup.custom/trunk/src/waeup/custom/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.custom/trunk/src/waeup/custom/students/browser.py

    r7879 r7880  
    117117        self.amount = (self.context.amount_auth + self.context.surcharge_1 +
    118118            self.context.surcharge_2 + self.context.surcharge_3)
     119        self.amount_100 = 100 * self.amount
    119120        self.local_date_time = str(self.context.creation_date)
    120121        certificate = getattr(self.student['studycourse'],'certificate',None)
     
    126127            xmldict['faculty'] = None
    127128        xmldict['detail_ref'] = self.context.p_id
    128         xmldict['provider_amt'] = self.context.surcharge_1
     129        xmldict['provider_amt'] = 100 * self.context.surcharge_1
    129130        xmldict['provider_acct'] = self.provider_acct
    130131        xmldict['provider_bank_id'] = self.provider_bank_id
    131132        xmldict['provider_item_name'] = self.provider_item_name
    132         xmldict['institution_amt'] = self.amount
     133        xmldict['institution_amt'] = 100 * self.context.amount_auth
    133134        xmldict['institution_acct'] = self.institution_acct
    134135        xmldict['institution_bank_id'] = self.institution_bank_id
    135136        xmldict['institution_item_name'] = self.context.p_category
    136137        xmldict['institution_name'] = self.institution_name
     138        # Interswitch amount is not part of the xml data
    137139        xmltext = """<payment_item_detail>
    138140<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
  • main/waeup.custom/trunk/src/waeup/custom/students/browser_templates/goto_interswitch.pt

    r7879 r7880  
    6262  <input type="hidden" name="site_name" tal:attributes="value view/site_name" />
    6363  <input type="hidden" name="local_date_time" tal:attributes="value view/local_date_time" />
    64   <input type="hidden" name="amount" tal:attributes="value view/amount" />
     64  <input type="hidden" name="amount" tal:attributes="value view/amount_100" />
    6565
    6666  <input type="hidden" name="txn_ref" tal:attributes="value view/context/p_id" />
Note: See TracChangeset for help on using the changeset viewer.