Ignore:
Timestamp:
14 May 2018, 20:30:19 (6 years ago)
Author:
Henrik Bettermann
Message:

Configure interswitch module for testing.

File:
1 edited

Legend:

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

    r15000 r15009  
    3030from kofacustom.edopoly.interfaces import MessageFactory as _
    3131
    32 PRODUCT_ID = '' # must be provided by Interswitch
     32PRODUCT_ID = '6207' # must be provided by Interswitch
    3333SITE_NAME = 'edopoly-kofa.waeup.org'
    34 PROVIDER_ACCT = '00000000'
    35 PROVIDER_BANK_ID = '00'
    36 PROVIDER_ITEM_NAME = 'BT Education'
     34PROVIDER_ACCT = '0773411069'
     35PROVIDER_BANK_ID = '31'
     36PROVIDER_ITEM_NAME = 'WAeAC'
    3737INSTITUTION_NAME = 'EdoPoly'
    3838CURRENCY = '566'
    39 GATEWAY_AMT = 150.0
     39GATEWAY_AMT = 300.0
    4040
    4141#POST_ACTION = 'https://webpay.interswitchng.com/paydirect/pay'
    42 POST_ACTION = 'https://stageserv.interswitchng.com/test_paydirect/pay'
     42POST_ACTION = 'https://sandbox.interswitchng.com/webpay/pay'
    4343#HOST = 'webpay.interswitchng.com'
    44 HOST = 'stageserv.interswitchng.com'
     44HOST = 'sandbox.interswitchng.com'
    4545#URL = '/paydirect/api/v1/gettransaction.json'
    46 URL = '/test_paydirect/api/v1/gettransaction.json'
     46URL = '/webpay/api/v1/gettransaction.json'
    4747
    4848httplib.HTTPSConnection.debuglevel = 0
     
    5858    currency = CURRENCY
    5959    product_id = PRODUCT_ID
    60     mac = ''  # must be provided by Interswitch
     60    mac = 'CEF793CBBE838AA0CBB29B74D571113B4EA6586D3BA77E7CFA0B95E278364EFC4526ED7BD255A366CDDE11F1F607F0F844B09D93B16F7CFE87563B2272007AB3'  # must be provided by Interswitch
    6161
    6262    def update(self):
     
    7474        xmldict['provider_item_name'] = PROVIDER_ITEM_NAME
    7575        # Institution data
    76         xmldict['institution_acct'] = '00000000'
    77         xmldict['institution_bank_id'] = '00'
     76        xmldict['institution_acct'] = '1015666713'
     77        xmldict['institution_bank_id'] = '121'
    7878        xmldict['institution_amt'] = '0.0'
    7979        provider_amt = 0.0
    80         self.pay_item_id = '0000' # must be provided by Interswitch
     80        self.pay_item_id = '101' # must be provided by Interswitch
    8181        xmldict['provider_amt'] = 100 * provider_amt
    8282        xmldict['institution_item_name'] = self.context.category
     
    171171    gateway_host = HOST
    172172    gateway_url = URL
     173    mac = 'CEF793CBBE838AA0CBB29B74D571113B4EA6586D3BA77E7CFA0B95E278364EFC4526ED7BD255A366CDDE11F1F607F0F844B09D93B16F7CFE87563B2272007AB3'
    173174
    174175class CustomInterswitchPaymentVerifyWebservicePageStudent(
Note: See TracChangeset for help on using the changeset viewer.