Changeset 10528 for main/waeup.fceokene


Ignore:
Timestamp:
23 Aug 2013, 06:50:35 (11 years ago)
Author:
Henrik Bettermann
Message:

Use different bank account data for 'pude', and 'putme'.

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

Legend:

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

    r10450 r10528  
    205205        xmldict['provider_item_name'] = PROVIDER_ITEM_NAME
    206206        # Institution data
     207        if getattr(
     208            self.applicant.__parent__, 'prefix', None) in ('pude', 'putme'):
     209            xmldict['institution_acct'] = '2003670143'
     210            xmldict['institution_bank_id'] = '8'
     211        else:
     212            xmldict['institution_acct'] = '1012445289'
     213            xmldict['institution_bank_id'] = '117'
    207214        xmldict['institution_amt'] = 100 * (self.context.amount_auth -
    208215            provider_amt - GATEWAY_AMT)
    209         xmldict['institution_acct'] = '1012445289'
    210         xmldict['institution_bank_id'] = '117'
    211216        xmldict['institution_item_name'] = self.context.p_category
    212217        xmldict['institution_name'] = INSTITUTION_NAME
  • main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/tests.py

    r10520 r10528  
    348348            '<input type="hidden" name="amount" value="100000.0" />'
    349349            in self.browser.contents)
     350        self.assertTrue(
     351            '<item_detail item_id="1" item_name="application"'
     352            ' item_amt="35000" bank_id="117" acct_num="1012445289" />'
     353            in self.browser.contents)
     354        import pdb; pdb.set_trace()
     355
    350356
    351357    @external_test
Note: See TracChangeset for help on using the changeset viewer.