Changeset 17260 for main/kofacustom.nigeria
- Timestamp:
- 9 Jan 2023, 11:51:47 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/paypal/applicantsbrowser.py
r17259 r17260 81 81 82 82 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 @property93 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 103 83 # Webservice request views 104 84 … … 124 104 if response.get("status", None) == "COMPLETED": 125 105 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() 128 107 if not response: 129 108 self.flash(_('Paypal Order ID not found.'), type='danger')
Note: See TracChangeset for help on using the changeset viewer.