- Timestamp:
- 23 Oct 2012, 08:24:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py
r9387 r9392 19 19 import httplib 20 20 import urllib 21 import hashlib 21 22 from xml.dom.minidom import parseString 22 23 import grok … … 42 43 #QUERY_URL = 'https://webpay.interswitchng.com/paydirect/services/TransactionQueryURL.aspx' 43 44 #QUERY_URL = 'https://testwebpay.interswitchng.com/test_paydirect/services/TransactionQueryURL.aspx' 45 44 46 #POST_ACTION = 'https://webpay.interswitchng.com/paydirect/webpay/pay.aspx' 45 47 POST_ACTION = 'https://testwebpay.interswitchng.com/test_paydirect/webpay/pay.aspx' … … 47 49 #HOST = 'webpay.interswitchng.com' 48 50 HOST = 'testwebpay.interswitchng.com' 51 49 52 #URL = '/paydirect/services/TransactionQueryWs.asmx' 50 53 URL = '/test_paydirect/services/TransactionQueryWs.asmx' … … 180 183 pay_item_id = '101' 181 184 product_id = PRODUCT_ID 185 mac = '737396C271FB8E2BA1A612A942267553E16373658A5F83D90DAFFBB806C16E9E6284006C06CEFFB55768004179D7BC01CD237CCE6314B938A5A5D9F49369DE5A' 182 186 183 187 def update(self): … … 235 239 xmldict['institution_item_name'] = self.context.p_category 236 240 xmldict['institution_name'] = INSTITUTION_NAME 241 242 hashargs = ( 243 self.context.p_id + 244 PRODUCT_ID + 245 self.pay_item_id + 246 str(int(self.amount_auth)) + 247 self.site_redirect_url + 248 self.mac) 249 self.hashvalue = hashlib.sha512(hashargs).hexdigest() 250 237 251 # Interswitch amount is not part of the xml data 238 252 xmltext = """<payment_item_detail> … … 259 273 site_name = SITE_NAME 260 274 currency = CURRENCY 261 pay_item_id = ' 8303'275 pay_item_id = '' 262 276 product_id = PRODUCT_ID 263 277
Note: See TracChangeset for help on using the changeset viewer.