Changeset 16736


Ignore:
Timestamp:
6 Dec 2021, 23:16:11 (3 years ago)
Author:
Henrik Bettermann
Message:

Go live.

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

    r16735 r16736  
    3131from kofacustom.unidel.interfaces import MessageFactory as _
    3232
    33 PRODUCT_ID = '6207' # must be provided by Interswitch
     33PRODUCT_ID = '22153701' # must be provided by Interswitch
    3434SITE_NAME = 'unidel.waeup.org'
    3535PROVIDER_ACCT = '0213065415'
     
    3838INSTITUTION_NAME = 'UNIDEL'
    3939CURRENCY = '566'
    40 GATEWAY_AMT = 300.0
    41 MAC = 'CEF793CBBE838AA0CBB29B74D571113B4EA6586D3BA77E7CFA0B95E278364EFC4526ED7BD255A366CDDE11F1F607F0F844B09D93B16F7CFE87563B2272007AB3' # must be provided by Interswitch
    42 
    43 #POST_ACTION = 'https://webpay.interswitchng.com/paydirect/pay'
    44 POST_ACTION = 'https://sandbox.interswitchng.com/webpay/pay'
    45 #HOST = 'webpay.interswitchng.com'
    46 HOST = 'sandbox.interswitchng.com'
    47 #URL = '/paydirect/api/v1/gettransaction.json'
    48 URL = '/webpay/api/v1/gettransaction.json'
     40GATEWAY_AMT = 250.0
     41#MAC = 'CEF793CBBE838AA0CBB29B74D571113B4EA6586D3BA77E7CFA0B95E278364EFC4526ED7BD255A366CDDE11F1F607F0F844B09D93B16F7CFE87563B2272007AB3'
     42MAC = 'Lfj58PyWS6MvPz65zIbofZNoAn89fZAjtnsEWbTof73OyHQH7rpJPHWD2m4cekDoowJ8nqQCn6ay2lopzKBOekFsMfzkXG6KYGRuyhMQq4bK7wDNaWqpxeZl3fMumNmi'
     43
     44POST_ACTION = 'https://webpay.interswitchng.com/collections/w/pay'
     45#POST_ACTION = 'https://sandbox.interswitchng.com/webpay/pay'
     46HOST = 'webpay.interswitchng.com'
     47#HOST = 'sandbox.interswitchng.com'
     48URL = '/collections/api/v1/gettransaction.json'
     49#URL = '/webpay/api/v1/gettransaction.json'
    4950
    5051httplib.HTTPSConnection.debuglevel = 0
     
    9293        xmldict['institution_bank_id'] = '117'
    9394        provider_amt = 0.0
    94         self.pay_item_id = '101' # must be provided by Interswitch
     95        self.pay_item_id = 'Default_Payable_MX47126' # must be provided by Interswitch
    9596        xmldict['provider_amt'] = 100 * provider_amt
    9697        xmldict['institution_item_name'] = self.context.category
     
    134135    site_name = SITE_NAME
    135136    currency = CURRENCY
    136     pay_item_id = '101' # must be provided by Interswitch
     137    pay_item_id = 'Default_Payable_MX47126' # must be provided by Interswitch
    137138    product_id = PRODUCT_ID
    138139    mac = MAC
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/tests.py

    r16731 r16736  
    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="101" />' in
     75        self.assertTrue('value="Default_Payable_MX47126" />' in
    7676                           self.browser.contents)
    7777        self.assertEqual(self.student.current_mode, 'ug_ft')
     
    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="101" />...',
     96        self.assertMatches('...<input type="hidden" name="pay_item_id" value="Default_Payable_MX47126" />...',
    9797                           self.browser.contents)
    9898        self.assertMatches('...Total Amount Authorized:...',
Note: See TracChangeset for help on using the changeset viewer.