Ignore:
Timestamp:
2 Dec 2021, 13:28:04 (3 years ago)
Author:
Henrik Bettermann
Message:

Set Interswitch test parameters.

Location:
main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/browser.py

    r16723 r16731  
    3131from kofacustom.unidel.interfaces import MessageFactory as _
    3232
    33 PRODUCT_ID = '' # must be provided by Interswitch
     33PRODUCT_ID = '6207' # must be provided by Interswitch
    3434SITE_NAME = 'unidel.waeup.org'
    3535PROVIDER_ACCT = '00000000'
     
    3838INSTITUTION_NAME = 'UNIDEL'
    3939CURRENCY = '566'
    40 GATEWAY_AMT = 300.0
    41 MAC = '' # must be provided by Interswitch
     40GATEWAY_AMT = 250.0
     41MAC = 'CEF793CBBE838AA0CBB29B74D571113B4EA6586D3BA77E7CFA0B95E278364EFC4526ED7BD255A366CDDE11F1F607F0F844B09D93B16F7CFE87563B2272007AB3' # must be provided by Interswitch
    4242
    4343#POST_ACTION = 'https://webpay.interswitchng.com/paydirect/pay'
     
    8989        xmldict['provider_item_name'] = PROVIDER_ITEM_NAME
    9090        # Institution data
    91         xmldict['institution_acct'] = '00000000'
    92         xmldict['institution_bank_id'] = '00'
     91        xmldict['institution_acct'] = '1216063205'
     92        xmldict['institution_bank_id'] = '117'
    9393        provider_amt = 0.0
    94         self.pay_item_id = '0000' # must be provided by Interswitch
     94        self.pay_item_id = '101' # must be provided by Interswitch
    9595        xmldict['provider_amt'] = 100 * provider_amt
    9696        xmldict['institution_item_name'] = self.context.category
     
    134134    site_name = SITE_NAME
    135135    currency = CURRENCY
    136     pay_item_id = '0000' # must be provided by Interswitch
     136    pay_item_id = '101' # must be provided by Interswitch
    137137    product_id = PRODUCT_ID
    138138    mac = MAC
     
    159159        xmldict = {}
    160160        provider_amt = 400.0
    161         xmldict['institution_acct'] = '00000000000'
    162         xmldict['institution_bank_id'] = '00'
     161        xmldict['institution_acct'] = '1216063205'
     162        xmldict['institution_bank_id'] = '117'
    163163        xmldict['detail_ref'] = self.context.p_id
    164164        xmldict['provider_amt'] = 100 * provider_amt
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/tests.py

    r16721 r16731  
    7373        self.payment_url = self.browser.url
    7474        self.browser.getLink("Pay via Interswitch", index=0).click()
    75         self.assertTrue('<input type="hidden" name="pay_item_id" value="0000" />' in
     75        self.assertTrue('<input type="hidden" name="pay_item_id" value="101" />' in
    7676                           self.browser.contents)
    7777        self.assertEqual(self.student.current_mode, 'ug_ft')
    7878        self.assertTrue(
    79             '<input type="hidden" name="amount" value="4015000" />' in
    80             self.browser.contents)
    81         self.assertTrue(
    82             'item_name="School Fee" item_amt="4000000" bank_id="00" acct_num="00000000"' in
     79            '<input type="hidden" name="amount" value="4025000" />' in
     80            self.browser.contents)
     81        self.assertTrue(
     82            'item_name="School Fee" item_amt="4000000" bank_id="117" acct_num="1216063205"' in
    8383            self.browser.contents)
    8484
     
    9494        self.browser.open(self.payments_path + '/xyz')
    9595        self.browser.getLink("Pay via Interswitch", index=0).click()
    96         self.assertMatches('...<input type="hidden" name="pay_item_id" value="0000" />...',
     96        self.assertMatches('...<input type="hidden" name="pay_item_id" value="101" />...',
    9797                           self.browser.contents)
    9898        self.assertMatches('...Total Amount Authorized:...',
Note: See TracChangeset for help on using the changeset viewer.