Ignore:
Timestamp:
20 Mar 2012, 14:37:35 (13 years ago)
Author:
Henrik Bettermann
Message:

All fees must be float not int.

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

Legend:

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

    r7926 r7928  
    197197        self.context.r_code = query.get('resp', None)
    198198        self.context.r_pay_reference  = query.get('payRef', None)
    199         self.context.r_amount_approved = int(query.get('apprAmt', '0')) / 100
     199        self.context.r_amount_approved = float(query.get('apprAmt', '0.0')) / 100
    200200        self.context.r_desc = query.get('desc', None)
    201201
     
    260260        self.context.r_code = wlist[0]
    261261        self.context.r_desc = wlist[1]
    262         self.context.r_amount_approved = int(wlist[2]) / 100
     262        self.context.r_amount_approved = float(wlist[2]) / 100
    263263        self.context.r_card_num = wlist[3]
    264264        self.context.r_pay_reference = wlist[5]
  • main/waeup.custom/trunk/src/waeup/custom/interswitch/tests.py

    r7926 r7928  
    5959                           self.browser.contents)
    6060        self.assertMatches(
    61             '...<input type="hidden" name="amount" value="4000000" />...',
     61            '...<input type="hidden" name="amount" value="4000000.0" />...',
    6262            self.browser.contents)
    6363
Note: See TracChangeset for help on using the changeset viewer.