Changeset 12714 for main/waeup.ikoba/branches/uli-payments/src
- Timestamp:
- 10 Mar 2015, 13:16:48 (10 years ago)
- 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 1516 1516 return 1517 1517 1518 @action(_('Select payment method and proceed to payment gateway' 1519 ' (final submission)'), 1518 @action(_('Select payment method (final submission)'), 1520 1519 style='primary', warning=WARNING_CON,) 1521 1520 def confirm(self, **data): … … 1524 1523 type='warning') 1525 1524 else: 1526 1527 1525 service = queryUtility(IPaymentGatewayService, name=self.gw) 1528 1526 if service is None: … … 1532 1530 payment_items = payment_items_from_contract(self.context) 1533 1531 payment = service.create_payment(payer, payment_items) 1532 payment.contract_id = self.context.contract_id 1534 1533 payment, view_name = service.next_step(payment.payment_id) 1535 1534 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') 1538 1536 self.redirect(url) 1539 1537 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 1542 1545 1543 1546 class ContractTriggerTransitionFormPage(IkobaEditFormPage): -
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/customers/tests/test_browser.py
r12710 r12714 1288 1288 1289 1289 never_ending_button_text = ( 1290 'Select payment method and proceed to payment ' 1291 'gateway (final submission)') 1290 'Select payment method (final submission)') 1292 1291 1293 1292 def add_product_option(self, contract):
Note: See TracChangeset for help on using the changeset viewer.