Index: /main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py	(revision 9514)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py	(revision 9515)
@@ -263,4 +263,9 @@
             xmldict['institution_bank_id'] = '7'
             xmldict['institution_acct'] = '1003475516'
+        if self.context.p_category == 'gown':
+            self.pay_item_id = '5704'
+            provider_amt = 0
+            xmldict['institution_bank_id'] = '7'
+            xmldict['institution_acct'] = '1016232382'
 
         xmldict['provider_amt'] = 100 * provider_amt
@@ -270,5 +275,12 @@
             self.context.amount_auth - provider_amt - 150)
         # Interswitch amount is not part of the xml data
-        xmltext = """<payment_item_detail>
+        if provider_amt == 0:
+            xmltext = """<payment_item_detail>
+<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
+<item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" />
+</item_details>
+</payment_item_detail>""" % xmldict
+        else:
+            xmltext = """<payment_item_detail>
 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
 <item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" />
Index: /main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py	(revision 9514)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py	(revision 9515)
@@ -148,4 +148,30 @@
             self.browser.contents)
 
+        # Create gown fee ticket
+        configuration.maint_fee = 987.0
+        self.app['configuration']['2004'].gown_fee = 234.0
+        self.browser.open(self.payments_path + '/addop')
+        self.browser.getControl(name="form.p_category").value = ['gown']
+        self.browser.getControl("Create ticket").click()
+        ctrl = self.browser.getControl(name='val_id')
+        value = ctrl.options[3]
+        self.browser.getLink(value).click()
+        self.assertMatches(
+            '...<span>234.0</span>...',
+            self.browser.contents)
+        # Manager can access InterswitchForm
+        self.browser.getLink("CollegePAY", index=0).click()
+        self.assertMatches('...<input type="hidden" name="pay_item_id" value="5704" />...',
+                           self.browser.contents)
+        self.assertMatches('...Total Amount Authorized:...',
+                           self.browser.contents)
+        self.assertMatches(
+            '...<input type="hidden" name="amount" value="23400.0" />...',
+            self.browser.contents)
+        self.assertMatches(
+            '...<item_detail item_id="1" item_name="Gown Hire Fee" item_amt="8400" bank_id="7" acct_num="1016232382" />...',
+            self.browser.contents)
+        self.assertFalse(
+            'item_name="BT Education"' in self.browser.contents)
 
 #    @external_test
