Ignore:
Timestamp:
9 Jan 2023, 11:51:47 (23 months ago)
Author:
Henrik Bettermann
Message:

We do not verify payments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/paypal/applicantsbrowser.py

    r17259 r17260  
    8181
    8282
    83 class PaypalVerifyPaymentStatusActionButtonApplicant(ManageActionButton):
    84     grok.order(3)
    85     grok.context(INigeriaOnlinePayment)
    86     grok.view(OPDPApplicant)
    87     grok.require('waeup.manageApplication')
    88     icon = 'actionicon_call.png'
    89     text = _('Verify Paypal Payment Status')
    90     target = 'verify_payment_status'
    91 
    92     @property
    93     def target_url(self):
    94         if not module_activated(
    95             self.context.__parent__.__parent__.year, self.context):
    96             return ''
    97         if self.context.p_state != 'paid' \
    98             or self.context.r_company != u'paypal':
    99             return ''
    100         return self.view.url(self.view.context, self.target)
    101 
    102 
    10383# Webservice request views
    10484
     
    124104        if response.get("status", None) == "COMPLETED":
    125105            self.context.p_state = u'paid'
    126             if self.context.payment_date is None:
    127                 self.context.payment_date = datetime.utcnow()
     106            self.context.payment_date = datetime.utcnow()
    128107        if not response:
    129108            self.flash(_('Paypal Order ID not found.'), type='danger')
Note: See TracChangeset for help on using the changeset viewer.