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

All fees must be float not int.

File:
1 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]
Note: See TracChangeset for help on using the changeset viewer.