Changeset 7928 for main/waeup.custom/trunk/src/waeup/custom/interswitch
- Timestamp:
- 20 Mar 2012, 14:37:35 (13 years ago)
- 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 197 197 self.context.r_code = query.get('resp', None) 198 198 self.context.r_pay_reference = query.get('payRef', None) 199 self.context.r_amount_approved = int(query.get('apprAmt', '0')) / 100199 self.context.r_amount_approved = float(query.get('apprAmt', '0.0')) / 100 200 200 self.context.r_desc = query.get('desc', None) 201 201 … … 260 260 self.context.r_code = wlist[0] 261 261 self.context.r_desc = wlist[1] 262 self.context.r_amount_approved = int(wlist[2]) / 100262 self.context.r_amount_approved = float(wlist[2]) / 100 263 263 self.context.r_card_num = wlist[3] 264 264 self.context.r_pay_reference = wlist[5] -
main/waeup.custom/trunk/src/waeup/custom/interswitch/tests.py
r7926 r7928 59 59 self.browser.contents) 60 60 self.assertMatches( 61 '...<input type="hidden" name="amount" value="4000000 " />...',61 '...<input type="hidden" name="amount" value="4000000.0" />...', 62 62 self.browser.contents) 63 63
Note: See TracChangeset for help on using the changeset viewer.