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

use simulte_callback dependent on portal_url

File:
1 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)
Note: See TracChangeset for help on using the changeset viewer.