Changeset 1235 for WAeUP_SRP/trunk


Ignore:
Timestamp:
8 Jan 2007, 09:51:33 (18 years ago)
Author:
joachim
Message:

use simulte_callback dependent on portal_url

Location:
WAeUP_SRP/trunk/skins/waeup_epayment
Files:
1 added
2 edited

Legend:

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

    r1226 r1235  
    6161payment.getContent().edit(mapping=d)
    6262info['callback_url'] = "%s/payments/%s/epayment_cb" % (student.absolute_url(),p_id)
     63if context.portal_url().find('uniben-demo.waeup.org') >-1:
     64    info['action'] = "http://www.wemaonlinepayments.biz/payment.aspx"
     65else:
     66    info['action'] = "%s/payments/%s/simulate_callback" % (student.absolute_url(),p_id)
    6367logger.info('"%(student_id)s","%(type_description)s", "%(amount)s N"' % info)
    6468return context.wema_form(info=info)
  • WAeUP_SRP/trunk/skins/waeup_epayment/wema_form.pt

    r1234 r1235  
    66        <br />
    77               
    8       <form method="post" action="http://www.wemaonlinepayments.biz/payment.aspx">
     8      <form method="post" action="http://www.wemaonlinepayments.biz/payment.aspx"
     9            tal:attributes="action info/action">
    910        <input name="x_SiteID" type="hidden" id="x_SiteID" value="8000"/>
    1011        <input name="x_Redirect_url" type="hidden" id="x_Redirect_url"
Note: See TracChangeset for help on using the changeset viewer.