Changeset 8212 for WAeUP_SRP/trunk/skins
- Timestamp:
- 19 Apr 2012, 08:34:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_uniben/etranzact_cb.py
r8145 r8212 53 53 logger.info('SUCCESS: %s' % success) 54 54 55 if success == '-1':55 if not 'COL1' in success: 56 56 logger.info('%s requeried payment %s for %s without success' % (member,context.getId(),student_id)) 57 57 return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url()) 58 59 60 # Example:61 #'RECEIPT_NO=500110908533962 #&PAYMENT_CODE=50085652131547278509563 #&MERCHANT_CODE=057001990364 #&TRANS_AMOUNT=5000.065 #&TRANS_DATE=2011/09/08 10:06:3166 #&TRANS_DESCR=Trade%20-%20Tel%20line%20installation%20EO20474-Obinna%20Mbagwu67 #&CUSTOMER_ID=EO2047468 #&BANK_CODE=50069 #&BRANCH_CODE=00170 #&SERVICE_ID=EO2047471 #&CUSTOMER_NAME=Obinna%20Mbagwu72 #&CUSTOMER_ADDRESS=No%207%20Park%20View%20Estate%20Ikoyi73 #&TELLER_ID=etzbankteller74 #&USERNAME=N/A75 #&PASSWORD=N/A76 #&BANK_NAME=eTranzact%20Test%20Bank77 #&BRANCH_NAME=ETZ%20BANK%20HEAD%20OFFICE78 #&CHANNEL_NAME=Bank79 #&PAYMENT_METHOD_NAME=Cash80 #&PAYMENT_CURRENCY=56681 #&TRANS_TYPE=00282 #&TRANS_FEE=0.083 #&TYPE_NAME=Trade%20-%20Tel%20line%20installation84 #&LEAD_BANK_CODE=05785 #&LEAD_BANK_NAME=eTranzact%20Test%20Bank'86 58 87 59 success = request.get('SUCCESS').split('&') … … 90 62 pay_doc = context.getContent() 91 63 92 if pay_doc['order_id'] != success_dict['COL1'] and not ontest : 64 oid = pay_doc['order_id'] 65 col1 = success_dict['COL1'] 66 67 if oid[len(oid)-8:len(oid)] != col1[len(col1)-8:len(col1)] and not ontest : 93 68 logger.info('%s requeried payment %s for %s but wrong COL1 %s returned' % (member,context.getId(),student_id,success_dict['COL1'])) 94 69 return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.