Ignore:
Timestamp:
22 Oct 2011, 05:15:30 (13 years ago)
Author:
Henrik Bettermann
Message:

Provide a getPaymentDetails function which requires a SessionConfiguration? object. This function is for demonstration and testing only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r6912 r6920  
    881881            payment.surcharge_1,
    882882            payment.surcharge_2,
    883             payment.surcharge_3)  = getPaymentDetails(
     883            payment.surcharge_3,
     884            error)  = getPaymentDetails(
    884885            data['p_category'],self.context.__parent__)
    885         #if payment.amount_auth == 0:
    886         #    self.flash('Payment amount could not be determined.')
    887         #    self.redirect(self.url(self.context, u'@@manage'))
    888         #    return
     886        if error:
     887            self.flash(error)
     888            self.redirect(self.url(self.context, u'@@manage'))
     889            return
    889890        self.context[payment.p_id] = payment
    890891        self.flash('Payment ticket created.')
Note: See TracChangeset for help on using the changeset viewer.