Changeset 1946


Ignore:
Timestamp:
22 Jun 2007, 14:01:38 (18 years ago)
Author:
joachim
Message:

live interswitch url (in custom)

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py

    r1944 r1946  
    4848info = {}
    4949is_so = info['is_so'] = context.isSectionOfficer()
    50 info['query_url'] = "https://webpay.interswitchng.com/test_paydirect/services/TransactionQueryURL.aspx"
     50info['query_url'] = "https://webpay.interswitchng.com/paydirect/services/TransactionQueryURL.aspx"
    5151info['prod_id'] = '61'
    5252#res = context.portal_catalog(portal_type='Student',id = student_id)
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_interswitch.py

    r1944 r1946  
    5858if True or context.portal_url().find('uniben-demo.waeup.org') >-1 or\
    5959   context.portal_url().find('uniben.waeup.org') >-1:
    60     info['action'] = "https://webpay.interswitchng.com/test_paydirect/webpay/pay.aspx"
     60    info['action'] = "https://webpay.interswitchng.com/paydirect/webpay/pay.aspx"
    6161else:
    6262    #pass
  • WAeUP_SRP/trunk/skins/waeup_epayment/payments_view.pt

    r1944 r1946  
    11<metal:body use-macro="here/main_template/macros/master">
    2       <metal:main fill-slot="main"
    3                   tal:define="info context/getPaymentsFolderInfo;">
    4 
    5         <span tal:condition="not: info">
    6           <span tal:content="here/illegal_view" />
    7         </span>
    8         <span tal:condition="info">
    9         <span tal:define= " rows info/payments;
    10                             review_state context/getStudentReviewState;
    11                             is_student context/isStudent;
    12                             s_name context/getStudentNameInContext;">
     2  <metal:main fill-slot="main"
     3              tal:define="info context/getPaymentsFolderInfo;">
     4    <span tal:condition="not: info">
     5      <span tal:content="here/illegal_view" />
     6    </span>
     7    <span tal:condition="info" tal:omit-tag="">
     8      <span tal:define= " rows info/payments;
     9      review_state context/getStudentReviewState;
     10      is_student context/isStudent;
     11      s_name context/getStudentNameInContext;"
     12      >
    1313        <a href=""
    1414           tal:attributes="href string:${context/aq_parent/absolute_url}">
     
    1717        </a>
    1818        <h3>
    19           <span tal:condition="not:is_student">
    20             <span tal:content="s_name" />:
    21           </span>
    22           <span tal:condition="is_student">
    23             My
    24           </span>         
    25           <span tal:content="here/title_or_id" />
     19          <span tal:condition="not:is_student" tal:omit-tag="">
     20            <span tal:content="s_name" />:</span>
     21          <span tal:condition="is_student" tal:omit-tag="">My</span> <span tal:content="here/title_or_id" />
    2622        </h3>
    2723        <br />
    28 
    29 
    3024        <table class="registration" width="100%">
     25          <tr>
     26            <th>Description, Amount, Date</th>
     27            <th>Response</th>
     28            <th>Transactioncode</th>
     29          </tr>
    3130          <tr tal:repeat="row rows"
    3231              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     
    3635                <strong tal:content="row/title" /></a>
    3736            </td>
    38           <td tal:content="row/resp_desc" />
    39           <td tal:content="row/trans_ref" />
     37            <td tal:content="row/resp_desc" />
     38            <td tal:content="row/trans_ref" />
    4039            <td>
    41             <a tal:condition="row/is_approvable"
    42                tal:attributes="href string:${context/absolute_url}/${row/id}/approve_epayment;
    43                                onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );
    44                                ">
     40              <a tal:condition="row/is_approvable"
     41                 tal:attributes="href string:${context/absolute_url}/${row/id}/approve_epayment;
     42                 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure? You will not be able to undo the approval.'), );"
     43                 >
    4544                [approve payment]
    46             </a>             
     45              </a>             
    4746            </td>
    4847            <td tal:condition="row/is_requeryable">
    49             <a tal:condition="python:1"
    50                tal:attributes="href row/href;
    51                                onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure?'), );
    52                                ">
     48              <a tal:condition="python:1"
     49                 tal:attributes="href row/href;
     50                 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure?'), );"
     51                 >
    5352                [requery payment]
    54             </a>             
     53              </a>             
    5554            </td>
    5655          </tr>
     
    5857        <br />
    5958        <div>
    60         <form tal:condition="python:review_state == 'cleared_and_validated'"
    61               tal:attributes="action string: ${context/absolute_url}/pay_interswitch" method="post" class="group">
    62          <input type="submit" name="epayment"
    63                 class="context"
    64                 value="Initiate School Fee Online Payment"
    65                 />
    66         </form> 
    67         <form tal:condition="python:review_state == 'returning'"
    68               tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group">
    69          <input type="hidden" name="paid_session"
    70                 tal:attributes="value info/next_session"
    71                 />
    72          <input type="submit" name="epayment"
    73                 class="context"
    74                 value="Pay School Fee by Scratch Card"
    75                 tal:attributes="value string:Pay ${info/next_session_str} School Fee by Scratch Card"
    76                 />
    77         </form>         
     59          <form tal:condition="python:review_state == 'cleared_and_validated'"
     60                tal:attributes="action string: ${context/absolute_url}/pay_interswitch" method="post" class="group">
     61            <input type="submit" name="epayment"
     62                   class="context"
     63                   value="Initiate School Fee Online Payment"
     64                   />
     65          </form> 
     66          <form tal:condition="python:review_state == 'returning'"
     67                tal:attributes="action string: ${context/absolute_url}/pay_by_sc" method="post" class="group">
     68            <input type="hidden" name="paid_session"
     69                   tal:attributes="value info/next_session"
     70                   />
     71            <input type="submit" name="epayment"
     72                   class="context"
     73                   value="Pay School Fee by Scratch Card"
     74                   tal:attributes="value string:Pay ${info/next_session_str} School Fee by Scratch Card"
     75                   />
     76          </form>         
    7877        </div>       
    7978      </span>
    80       </span>
    81       </metal:main>
     79    </span>
     80  </metal:main>
    8281</metal:body>
     82 
Note: See TracChangeset for help on using the changeset viewer.