Changeset 14722 for main/kofacustom.dspg


Ignore:
Timestamp:
20 Jul 2017, 08:57:13 (7 years ago)
Author:
Henrik Bettermann
Message:

Interswitch integration step 1

File:
1 edited

Legend:

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

    r14716 r14722  
    3030from kofacustom.dspg.interfaces import MessageFactory as _
    3131
    32 PRODUCT_ID = '' # must be provided by Interswitch
    33 SITE_NAME = 'dspg-kofa.waeup.org'
    34 PROVIDER_ACCT = '00000000'
    35 PROVIDER_BANK_ID = '00'
     32PRODUCT_ID = '6207' # must be provided by Interswitch
     33SITE_NAME = 'dspg.waeup.org'
     34PROVIDER_ACCT = '1010764827'
     35PROVIDER_BANK_ID = '117'
    3636PROVIDER_ITEM_NAME = 'BT Education'
    37 INSTITUTION_NAME = 'Delta State Polytechnic'
     37INSTITUTION_NAME = 'Delta State Polytechnic Ogwashi-Uku'
    3838CURRENCY = '566'
    39 GATEWAY_AMT = 150.0
     39GATEWAY_AMT = 250.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
     
    120120    site_name = SITE_NAME
    121121    currency = CURRENCY
    122     pay_item_id = '0000' # must be provided by Interswitch
    123     product_id = PRODUCT_ID
    124     mac = ''
     122    pay_item_id = '103' # must be provided by Interswitch
     123    product_id = PRODUCT_ID
     124    mac = 'CEF793CBBE838AA0CBB29B74D571113B4EA6586D3BA77E7CFA0B95E278364EFC4526ED7BD255A366CDDE11F1F607F0F844B09D93B16F7CFE87563B2272007AB3'
    125125
    126126    def update(self):
     
    189189    gateway_host = HOST
    190190    gateway_url = URL
     191    mac = 'CEF793CBBE838AA0CBB29B74D571113B4EA6586D3BA77E7CFA0B95E278364EFC4526ED7BD255A366CDDE11F1F607F0F844B09D93B16F7CFE87563B2272007AB3'
    191192
    192193class CustomInterswitchPaymentVerifyWebservicePageApplicant(
     
    198199    gateway_host = HOST
    199200    gateway_url = URL
     201    mac = 'CEF793CBBE838AA0CBB29B74D571113B4EA6586D3BA77E7CFA0B95E278364EFC4526ED7BD255A366CDDE11F1F607F0F844B09D93B16F7CFE87563B2272007AB3'
Note: See TracChangeset for help on using the changeset viewer.