Ignore:
Timestamp:
10 Aug 2017, 06:43:59 (7 years ago)
Author:
Henrik Bettermann
Message:

Define MERCHANTID, HOST, HTTPS, API_KEY, SERVICETYPEID in one place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/studentsbrowser.py

    r14779 r14790  
    3333from kofacustom.nigeria.interfaces import MessageFactory as _
    3434
     35from kofacustom.nigeria.remita.tests import (
     36    MERCHANTID, HOST, HTTPS, API_KEY, SERVICETYPEID)
     37
    3538grok.templatedir('browser_templates')
    3639
     
    107110
    108111    # Here we use Remita test portal data
    109     merchantId = '2547916'
    110     host = 'www.remitademo.net'
    111     https = False
    112     api_key = '1946'
     112    merchantId = MERCHANTID
     113    host = HOST
     114    https = HTTPS
     115    api_key = API_KEY
    113116
    114117    def update(self):
     
    160163
    161164    # Here we use Remita test portal data
    162     merchantId = '2547916'
    163     host = 'www.remitademo.net'
    164     https = False
    165     api_key = '1946'
     165    merchantId = MERCHANTID
     166    host = HOST
     167    https = HTTPS
     168    api_key = API_KEY
    166169
    167170    def update(self):
     
    214217    label = _('Pay via Remita')
    215218    submit_button = _('Pay now')
    216     https = False
    217219
    218220    # Here we use Remita test portal data
    219     merchantId = '2547916'
    220     serviceTypeId = '4430731'
    221     api_key = '1946'
     221    merchantId = MERCHANTID
     222    host = HOST
     223    https = HTTPS
     224    api_key = API_KEY
     225    serviceTypeId = SERVICETYPEID
     226
    222227    orderId = '3456346346'
    223     host = 'www.remitademo.net'
    224228    init_url = '/remita/ecomm/split/init.reg'
    225229    amount='1000'
Note: See TracChangeset for help on using the changeset viewer.