Changeset 17249 for main/kofacustom.nigeria/trunk/src
- Timestamp:
- 28 Dec 2022, 16:04:44 (2 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/paypal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/paypal/__init__.py
r17248 r17249 24 24 25 25 def module_activated(session, payment): 26 if not payment.p_currency in ('USD',):26 if payment is not None and not payment.p_currency in ('USD',): 27 27 return False 28 28 if queryUtility(IPaypalConfig) is None: -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/paypal/tests.py
r17239 r17249 280 280 payment = createObject('waeup.StudentOnlinePayment') 281 281 payment.r_company = 'unknown' 282 payment.p_currency = 'USD' 282 283 self.assertFalse(module_activated(curr_year - 2, payment)) 283 284 payment.r_company = 'paypal'
Note: See TracChangeset for help on using the changeset viewer.