Ignore:
Timestamp:
10 Mar 2015, 13:16:48 (10 years ago)
Author:
uli
Message:

Some finetuning.

Location:
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/customers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/customers/browser.py

    r12704 r12714  
    15161516        return
    15171517
    1518     @action(_('Select payment method and proceed to payment gateway'
    1519               ' (final submission)'),
     1518    @action(_('Select payment method (final submission)'),
    15201519            style='primary', warning=WARNING_CON,)
    15211520    def confirm(self, **data):
     
    15241523                       type='warning')
    15251524        else:
    1526 
    15271525            service = queryUtility(IPaymentGatewayService, name=self.gw)
    15281526            if service is None:
     
    15321530            payment_items = payment_items_from_contract(self.context)
    15331531            payment = service.create_payment(payer, payment_items)
     1532            payment.contract_id = self.context.contract_id
    15341533            payment, view_name = service.next_step(payment.payment_id)
    15351534            url = self.url(payment, view_name)
    1536             self.flash(_('Payment has been initiated.'))
    1537             IWorkflowInfo(self.context).fireTransition('await')
     1535            #IWorkflowInfo(self.context).fireTransition('await')
    15381536            self.redirect(url)
    15391537            return
    1540 
    1541         return
     1538        return
     1539
     1540    @action(_('Cancel'))
     1541    def cancel(self, **data):
     1542        self.redirect(self.url(self.context, 'edit'))
     1543        return
     1544
    15421545
    15431546class ContractTriggerTransitionFormPage(IkobaEditFormPage):
  • main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/customers/tests/test_browser.py

    r12710 r12714  
    12881288
    12891289    never_ending_button_text = (
    1290         'Select payment method and proceed to payment '
    1291         'gateway (final submission)')
     1290        'Select payment method (final submission)')
    12921291
    12931292    def add_product_option(self, contract):
Note: See TracChangeset for help on using the changeset viewer.