## $Id: webservices.py 14803 2017-08-15 06:20:51Z henrik $ ## ## Copyright (C) 2017 Uli Fouquet & Henrik Bettermann ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ## from kofacustom.nigeria.remita.webservices import PaymentNotificationListenerWebservice from waeup.uniben.remita.browser import MERCHANTID, HOST, HTTPS, API_KEY class CustomPaymentNotificationListenerWebservice( PaymentNotificationListenerWebservice): """A webservice to receive payment notifications from accepted IP addresses without authentication which trigger a query of a Remita transaction status. """ ACCEPTED_IP = ('127.0.0.1', '209.235.215.199', '162.13.211.91', '162.13.211.92', '83.138.167.2',) merchantId = MERCHANTID host = HOST https = HTTPS api_key = API_KEY def update(self, P_ID=None): self.output = 'Webservice disabled' return