Changeset 13606 for main/waeup.aaue/trunk
- Timestamp:
- 12 Jan 2016, 17:18:53 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r13586 r13606 47 47 URL = '/paydirect/api/v1/gettransaction.json' 48 48 HTTPS = True 49 MAC = '9718FA00B0F5070B388A9896ADCED9B2FB02D30F71E12E68BDADC63F6852A3496FF97D8A0F9DA9F753B911A49BB09BB87B55FD02046BD325C74C46C0123CF023' 49 MAC_REGULAR = '9718FA00B0F5070B388A9896ADCED9B2FB02D30F71E12E68BDADC63F6852A3496FF97D8A0F9DA9F753B911A49BB09BB87B55FD02046BD325C74C46C0123CF023' 50 MAC_PT = '74424F1DFECD6058F153148255CDD55E16724B4F380ADB2C63C5D1D7A5675759010C8153DCB930AAF2D38903CBF7CE32B8A6BA2C16BBC46721DF2E3F3E4548E3' 50 51 51 52 httplib.HTTPSConnection.debuglevel = 0 … … 77 78 site_name = SITE_NAME 78 79 currency = CURRENCY 79 mac = MAC80 80 81 81 def update(self): … … 89 89 self.product_id = PRODUCT_ID_PT 90 90 self.pay_item_id = '101' 91 self.mac = MAC_PT 91 92 else: 92 93 self.product_id = PRODUCT_ID_REGULAR 93 94 self.pay_item_id = '109' 95 self.mac = MAC_REGULAR 94 96 xmldict = {} 95 97 provider_amt = 1000.0 … … 136 138 currency = CURRENCY 137 139 #pay_item_id = '101' 138 mac = MAC139 140 140 141 def update(self): … … 161 162 if contr_agreement_student(student) == 'first': 162 163 self.product_id = PRODUCT_ID_PT 164 self.mac = MAC_PT 163 165 else: 164 166 self.product_id = PRODUCT_ID_REGULAR 167 self.mac = MAC_REGULAR 165 168 166 169 # To guarantee that cleared students pay both acceptance fee … … 420 423 gateway_url = URL 421 424 https = HTTPS 422 mac = MAC 425 426 @property 427 def mac(self): 428 if contr_agreement_applicant(self.context.__parent__) == 'first': 429 return MAC_PT 430 return MAC_REGULAR 423 431 424 432 @property … … 436 444 gateway_url = URL 437 445 https = HTTPS 438 mac = MAC 446 447 @property 448 def mac(self): 449 if contr_agreement_applicant(self.context.__parent__) == 'first': 450 return MAC_PT 451 return MAC_REGULAR 439 452 440 453 @property … … 452 465 gateway_url = URL 453 466 https = HTTPS 454 mac = MAC 467 468 @property 469 def mac(self): 470 if contr_agreement_student(self.context.student) == 'first': 471 return MAC_PT 472 return MAC_REGULAR 455 473 456 474 @property … … 468 486 gateway_url = URL 469 487 https = HTTPS 470 mac = MAC 488 489 @property 490 def mac(self): 491 if contr_agreement_student(self.context.student) == 'first': 492 return MAC_PT 493 return MAC_REGULAR 471 494 472 495 @property
Note: See TracChangeset for help on using the changeset viewer.