Ignore:
Timestamp:
13 Dec 2022, 21:15:18 (22 months ago)
Author:
Henrik Bettermann
Message:

Set WebCheckout? parameters.
Adjust tests.

File:
1 edited

Legend:

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

    r17194 r17223  
    2525    InterswitchPaymentVerifyWebservicePageApplicant,
    2626    InterswitchPaymentVerifyWebservicePageStudent,
    27     InterswitchPageStudent, InterswitchPageApplicant,
     27    InterswitchPageStudent,
     28    InterswitchPageApplicant,)
     29from kofacustom.nigeria.interswitch.webcheckoutbrowser import (
     30    WebCheckoutPageStudent,
     31    WebCheckoutPageApplicant,
     32    WebCheckoutConfirmTransactionStudent,
     33    WebCheckoutConfirmTransactionApplicant,
    2834    )
    2935from kofacustom.lpng.students.interfaces import ICustomStudentOnlinePayment
     
    229235    gateway_url = URL
    230236    mac = MAC
     237
     238
     239# WebCheckout customizations
     240
     241class CustomWebCheckoutPageStudent(WebCheckoutPageStudent):
     242    """ View which sends a POST request to the Interswitch
     243    WebCheckout payment gateway.
     244    """
     245    action = 'https://newwebpay.interswitchng.com/collections/w/pay'
     246    currency = '566'
     247    pay_item_id = 'Default_Payable_MX76823'
     248    merchant_code = 'MX76823'
     249    gateway_amt = GATEWAY_AMT
     250
     251class CustomWebCheckoutPageApplicant(WebCheckoutPageApplicant):
     252    """ View which sends a POST request to the Interswitch
     253    WebCheckout payment gateway.
     254    """
     255
     256    action = 'https://newwebpay.interswitchng.com/collections/w/pay'
     257    currency = '566'
     258    pay_item_id = 'Default_Payable_MX76823'
     259    merchant_code = 'MX76823'
     260    gateway_amt = GATEWAY_AMT
     261
     262class CustomWebCheckoutConfirmTransactionStudent(WebCheckoutConfirmTransactionStudent):
     263    """ Request webservice view for the WebCheckout gateway
     264    """
     265    merchant_code = 'MX76823'
     266    gateway_host = 'webpay.interswitchng.com'
     267    gateway_url = '/collections/api/v1/gettransaction.json'
     268    https = True
     269
     270class CustomWebCheckoutConfirmTransactionApplicant(WebCheckoutConfirmTransactionApplicant):
     271    """ Request webservice view for the WebCheckout gateway
     272    """
     273    merchant_code = 'MX76823'
     274    gateway_host = 'webpay.interswitchng.com'
     275    gateway_url = '/collections/api/v1/gettransaction.json'
     276    https = True
     277
     278
Note: See TracChangeset for help on using the changeset viewer.