Ignore:
Timestamp:
25 Nov 2021, 14:23:58 (3 years ago)
Author:
Henrik Bettermann
Message:

Start Interswitch integration.

Location:
main/kofacustom.unidel/trunk/src/kofacustom/unidel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/interfaces.py

    r16721 r16723  
    6868
    6969    interswitch_enabled = schema.Bool(
    70         title = _(u'Interswitch integration enabled'),
    71         default = False,
     70        title = _(u'Interswitch Collegepay integration enabled'),
     71        default = True,
     72        )
     73
     74    interswitch_paydirect_enabled = schema.Bool(
     75        title = _(u'Interswitch Paydirect integration enabled'),
     76        default = True,
    7277        )
    7378
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/browser.py

    r16721 r16723  
    3232
    3333PRODUCT_ID = '' # must be provided by Interswitch
    34 SITE_NAME = 'unidel-kofa.waeup.org'
     34SITE_NAME = 'unidel.waeup.org'
    3535PROVIDER_ACCT = '00000000'
    3636PROVIDER_BANK_ID = '00'
    3737PROVIDER_ITEM_NAME = 'WAeAC'
    38 INSTITUTION_NAME = 'Skeleton'
     38INSTITUTION_NAME = 'UNIDEL'
    3939CURRENCY = '566'
    40 GATEWAY_AMT = 150.0
     40GATEWAY_AMT = 300.0
    4141MAC = '' # must be provided by Interswitch
    4242
     
    229229    gateway_url = URL
    230230    mac = MAC
     231
     232# PAYDirect
     233
     234from kofacustom.nigeria.interswitch.paydirectbrowser import (
     235    PAYDirectPageStudent, PAYDirectPageApplicant,
     236    StudentRefNumberSlip, ApplicantRefNumberSlip,
     237    )
     238
     239from kofacustom.nigeria.interswitch.tests import (
     240    PAYDIRECT_URL, PAYDIRECT_HOST, MERCHANT_ID)
     241
     242#PAYDIRECT_HOST = 'orion.interswitchng.com'
     243#PAYDIRECT_URL = '/bookonhold/bookonhold.asmx'
     244#MERCHANT_ID = ''
     245
     246class CustomPAYDirectPageStudent(PAYDirectPageStudent):
     247    """Inform student how to proceed
     248    """
     249    grok.context(ICustomStudentOnlinePayment)
     250    gateway_amt = GATEWAY_AMT
     251    merchant_id = MERCHANT_ID
     252    gateway_url = PAYDIRECT_URL
     253    gateway_host = PAYDIRECT_HOST
     254    https = True
     255
     256class CustomPAYDirectPageApplicant(PAYDirectPageApplicant):
     257    """ Inform applicant how to proceed.
     258    """
     259    grok.context(ICustomApplicantOnlinePayment)
     260    gateway_amt = GATEWAY_AMT
     261    merchant_id = MERCHANT_ID
     262    gateway_url = PAYDIRECT_URL
     263    gateway_host = PAYDIRECT_HOST
     264    https = True
     265
     266class CustomStudentRefNumberSlip(StudentRefNumberSlip):
     267    """Deliver a PDF slip of the context.
     268    """
     269    merchant_id = MERCHANT_ID
     270
     271class CustomApplicantRefNumberSlip(ApplicantRefNumberSlip):
     272    """Deliver a PDF slip of the context.
     273    """
     274    merchant_id = MERCHANT_ID
Note: See TracChangeset for help on using the changeset viewer.