Ignore:
Timestamp:
17 Aug 2021, 09:52:07 (3 years ago)
Author:
Henrik Bettermann
Message:

Use live gateway.

File:
1 edited

Legend:

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

    r16490 r16574  
    2828    )
    2929from kofacustom.nigeria.interswitch.paydirectbrowser import (
    30     PAYDirectPageStudent, PAYDirectPageApplicant
     30    PAYDirectPageStudent, PAYDirectPageApplicant,
     31    StudentRefNumberSlip, ApplicantRefNumberSlip,
    3132    )
    3233from kofacustom.iuokada.students.interfaces import ICustomStudentOnlinePayment
     
    277278# PAYDirect added on 19/05/2021
    278279
     280PAYDIRECT_HOST = 'orion.interswitchng.com'
     281PAYDIRECT_URL = '/bookonhold/bookonhold.asmx'
     282MERCHANT_ID = '8124'
     283
    279284class CustomPAYDirectPageStudent(PAYDirectPageStudent):
    280285    """Inform student how to proceed
     
    282287    grok.context(ICustomStudentOnlinePayment)
    283288    gateway_amt = GATEWAY_AMT
    284     #merchant_id = MERCHANT_ID
    285     #gateway_url = PAYDIRECT_URL
    286     #gateway_host = PAYDIRECT_HOST
     289    merchant_id = MERCHANT_ID
     290    gateway_url = PAYDIRECT_URL
     291    gateway_host = PAYDIRECT_HOST
    287292    https = True
    288293
     
    292297    grok.context(ICustomApplicantOnlinePayment)
    293298    gateway_amt = GATEWAY_AMT
    294     #merchant_id = MERCHANT_ID
    295     #gateway_url = PAYDIRECT_URL
    296     #gateway_host = PAYDIRECT_HOST
     299    merchant_id = MERCHANT_ID
     300    gateway_url = PAYDIRECT_URL
     301    gateway_host = PAYDIRECT_HOST
    297302    https = True
     303
     304class CustomStudentRefNumberSlip(StudentRefNumberSlip):
     305    """Deliver a PDF slip of the context.
     306    """
     307    merchant_id = MERCHANT_ID
     308
     309class CustomApplicantRefNumberSlip(ApplicantRefNumberSlip):
     310    """Deliver a PDF slip of the context.
     311    """
     312    merchant_id = MERCHANT_ID
Note: See TracChangeset for help on using the changeset viewer.