Ignore:
Timestamp:
15 Nov 2016, 09:53:58 (8 years ago)
Author:
Henrik Bettermann
Message:

Fix test.

Adjust interswitch/browser.py to ease customization.

File:
1 edited

Legend:

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

    r13587 r14276  
    3030from kofacustom.skeleton.interfaces import MessageFactory as _
    3131
    32 PRODUCT_ID = '57'
     32PRODUCT_ID = '' # must be provided by Interswitch
    3333SITE_NAME = 'skeleton-kofa.waeup.org'
    3434PROVIDER_ACCT = '00000000'
     
    3838CURRENCY = '566'
    3939GATEWAY_AMT = 150.0
    40 #QUERY_URL = 'https://webpay.interswitchng.com/paydirect/services/TransactionQueryURL.aspx'
    41 #QUERY_URL = 'https://testwebpay.interswitchng.com/test_paydirect/services/TransactionQueryURL.aspx'
    42 POST_ACTION = 'https://webpay.interswitchng.com/paydirect/webpay/pay.aspx'
    43 #POST_ACTION = 'https://testwebpay.interswitchng.com/test_paydirect/webpay/pay.aspx'
    4440
    45 HOST = 'webpay.interswitchng.com'
    46 #HOST = 'testwebpay.interswitchng.com'
    47 URL = '/paydirect/services/TransactionQueryWs.asmx'
    48 #URL = '/test_paydirect/services/TransactionQueryWs.asmx'
     41#POST_ACTION = 'https://webpay.interswitchng.com/paydirect/pay'
     42POST_ACTION = 'https://stageserv.interswitchng.com/test_paydirect/pay'
     43#HOST = 'webpay.interswitchng.com'
     44HOST = 'stageserv.interswitchng.com'
     45#URL = '/paydirect/api/v1/gettransaction.json'
     46URL = '/test_paydirect/api/v1/gettransaction.json'
     47
    4948httplib.HTTPSConnection.debuglevel = 0
    5049HTTPS = True
     
    5958    currency = CURRENCY
    6059    product_id = PRODUCT_ID
    61     mac = ''
     60    mac = ''  # must be provided by Interswitch
    6261
    6362    def update(self):
     
    7978        xmldict['institution_amt'] = '0.0'
    8079        provider_amt = 0.0
    81         self.pay_item_id = '0000'
     80        self.pay_item_id = '0000' # must be provided by Interswitch
    8281        xmldict['provider_amt'] = 100 * provider_amt
    8382        xmldict['institution_item_name'] = self.context.category
     
    121120    site_name = SITE_NAME
    122121    currency = CURRENCY
    123     pay_item_id = '0000'
     122    pay_item_id = '0000' # must be provided by Interswitch
    124123    product_id = PRODUCT_ID
    125124    mac = ''
Note: See TracChangeset for help on using the changeset viewer.