- Timestamp:
- 13 Dec 2022, 21:15:18 (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.lpng/trunk/src/kofacustom/lpng/interswitch/browser.py
r17194 r17223 25 25 InterswitchPaymentVerifyWebservicePageApplicant, 26 26 InterswitchPaymentVerifyWebservicePageStudent, 27 InterswitchPageStudent, InterswitchPageApplicant, 27 InterswitchPageStudent, 28 InterswitchPageApplicant,) 29 from kofacustom.nigeria.interswitch.webcheckoutbrowser import ( 30 WebCheckoutPageStudent, 31 WebCheckoutPageApplicant, 32 WebCheckoutConfirmTransactionStudent, 33 WebCheckoutConfirmTransactionApplicant, 28 34 ) 29 35 from kofacustom.lpng.students.interfaces import ICustomStudentOnlinePayment … … 229 235 gateway_url = URL 230 236 mac = MAC 237 238 239 # WebCheckout customizations 240 241 class 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 251 class 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 262 class 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 270 class 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.