Payment/PayPal: Disable CSRF check for IPN

This commit is contained in:
Adrian Moennich 2017-09-26 12:12:15 +02:00
parent 02cc8e583d
commit 0eaa34ad5a
2 changed files with 3 additions and 1 deletions

View File

@ -44,6 +44,8 @@ paypal_transaction_action_mapping = {'Completed': TransactionAction.complete,
class RHPaypalIPN(RH):
"""Process the notification sent by the PayPal"""
CSRF_ENABLED = False
def _checkParams(self):
self.token = request.args['token']
self.registration = Registration.find_first(uuid=self.token)

View File

@ -21,7 +21,7 @@ from setuptools import setup, find_packages
setup(
name='indico_payment_paypal',
version='0.3',
version='0.3.1',
url='https://github.com/indico/indico-plugins',
license='https://www.gnu.org/licenses/gpl-3.0.txt',
author='Indico Team',