mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
Payment/PayPal: Disable CSRF check for IPN
This commit is contained in:
parent
02cc8e583d
commit
0eaa34ad5a
@ -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)
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user