Changeset 7776 for WAeUP_SRP


Ignore:
Timestamp:
7 Mar 2012, 12:07:00 (13 years ago)
Author:
Henrik Bettermann
Message:

Add requery link for eTranzact payments.

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

Legend:

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

    r7775 r7776  
    119119    row['resp_desc'] = payment.resp_desc or 'Payment Process Interrupted'
    120120    row['trans_ref'] = payment.order_id
     121    row['session'] = payment.session_id
     122    row['category'] = payment.category
     123    row['amount'] = payment.amount
    121124    if row['is_requeryable']:
    122         row['callback_url'] = "%(url)s/interswitch_cb" % row
     125        row['callback_url_inter'] = "%(url)s/interswitch_cb" % row
     126        row['callback_url_tranzact'] = "%(url)s/tranzact_cb" % row
    123127#        if payment.category == 'schoolfee':
    124128#            row['callback_url'] = "%(url)s/interswitch_cb" % row
     
    129133        href += '?transRef=%(trans_ref)s' % row
    130134        href += '&prodID=%(prod_id)s' % info
    131         href += '&redirectURL=%(callback_url)s' % row
    132         row['href'] = href
     135        href += '&redirectURL=%(callback_url_inter)s' % row
     136        row['href_inter'] = href
     137
     138        href = 'enter_tranzact_pin'
     139        href += '?category=%(category)s' % row
     140        href += '?session=%(session)s' % row
     141        href += '&amount=%(amount)s' % row
     142        href += '&redirectURL=%(callback_url_tranzact)s' % row
     143        row['href_tranzact'] = href
     144
    133145    if payment.status == 'paid':
    134146        row['confirmed'] = 'active'
  • WAeUP_SRP/trunk/skins/waeup_uniben/payments_view.pt

    r7775 r7776  
    4848            <td>
    4949              <a tal:condition="row/is_requeryable"
    50                  tal:attributes="href row/href;
     50                 tal:attributes="href row/href_inter;
    5151                 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure?'), );"
    5252                 >
    53                 [requery]
     53                [requery Interswitch]
    5454              </a>             
     55            </td>
     56            <td>
     57              <a tal:condition="row/is_requeryable"
     58                 tal:attributes="href row/href_tranzact;
     59                 onclick python:'return window.confirm(\'%s\')' %(cpsmcat('Are you sure?'), );"
     60                 >
     61                [requery eTranzact]
     62              </a>
    5563            </td>
    5664            <td>
Note: See TracChangeset for help on using the changeset viewer.