Changeset 8131


Ignore:
Timestamp:
12 Apr 2012, 16:01:45 (13 years ago)
Author:
Henrik Bettermann
Message:

Switch to eTranzact live system.

Location:
WAeUP_SRP/trunk/skins/waeup_uniben
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_uniben/enter_tranzact_pin.pt

    r8028 r8131  
    66      <br />
    77      <form id="form1" name="form1" method="post" tal:attributes= "action query_url">
    8       <input type="hidden" name="TERMINAL_ID" type="text" value="0000000001"/>
     8      <input type="hidden" name="TERMINAL_ID" type="text" value="0500000003"/>
    99      <input type="hidden" name="RESPONSE_URL" type="text"
    1010             tal:attributes="value redirect_url"/>
  • WAeUP_SRP/trunk/skins/waeup_uniben/etranzact_cb.py

    r8028 r8131  
    4141logger.info('%s, callback referer = %s, IP = %s' % (student_id,referer,real_ip))
    4242
    43 ontest = True
     43ontest = False
    4444
    45 if not ontest and not 'xyz' in referer and not 'waeup.org' in referer:
     45if not ontest and not 'etranzact' in referer and not 'waeup.org' in referer:
    4646    logger.info('%s, wrong callback referer %s, callback rejected, IP = %s' % (student_id,referer,real_ip))
    4747    return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
     
    8585#&LEAD_BANK_NAME=eTranzact%20Test%20Bank'
    8686
    87 
    8887success = request.get('SUCCESS').split('&')
    8988success_dict = dict([tuple(i.split('=')) for i in success])
     
    9190pay_doc = context.getContent()
    9291
    93 if pay_doc['order_id'] != success_dict['PAYMENT_CODE'] and not ontest :
     92if pay_doc['order_id'] != success_dict['COL1'] and not ontest :
    9493    logger.info('%s requeried payment %s for %s but wrong payment code %s returned' % (member,context.getId(),student_id,success_dict['PAYMENT_CODE']))
    9594    return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
    9695
    97 if pay_doc['amount'] != success_dict['TRANS_AMOUNT'] and not ontest :
     96if float(pay_doc['amount']) != float(success_dict['TRANS_AMOUNT']) and not ontest :
    9897    logger.info('%s requeried payment %s for %s but wrong amount %s returned' % (member,context.getId(),student_id,success_dict['TRANS_AMOUNT']))
    9998    return request.RESPONSE.redirect("%s/waeup_document_view" % context.absolute_url())
  • WAeUP_SRP/trunk/skins/waeup_uniben/getPaymentsFolderInfo.py

    r8110 r8131  
    4242info['student_name'] = student_record.name
    4343info['query_url'] = "https://webpay.interswitchng.com/paydirect/services/TransactionQueryURL.aspx"
    44 info['query_url_tranzact'] = "http://demo.etranzact.com:8080/WebConnect/queryPayoutletTransaction.jsp"
     44info['query_url_tranzact'] = "http://www.etranzact.net/WebConnect/verifypin.jsp"
    4545review_state = info['review_state'] = student_record.review_state
    4646parttime = student_record.mode and student_record.mode.endswith('_pt')
Note: See TracChangeset for help on using the changeset viewer.