Ignore:
Timestamp:
22 May 2024, 13:42:21 (7 months ago)
Author:
Henrik Bettermann
Message:

No service code no payment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/credobrowser.py

    r17783 r17799  
    177177    @action(_('Pay now'), validator=NullValidator, style='primary')
    178178    def pay(self, **data):
     179        if not self.serviceCode:
     180            self.flash('Payment via Credo not possible.', type='danger')
     181            self.redirect(self.url(self.context, '@@index'))
     182            return
    179183        success, url_or_message = initiate_payment(
    180184            self.context, self.host, self.callbackUrl,
Note: See TracChangeset for help on using the changeset viewer.