@write
@csrf_exempt
@post_required
def paypal(request):
 try:
  return _paypal(request)
 except Exception as e:
  paypal_log.error(('%s\n%s' % (e, request)), exc_info=True)
  if settings.IN_TEST_SUITE:
   raise
  return http.HttpResponseServerError('Unknown error.')

@ write @ csrf_exempt @ post_required def paypal ( request ) : try : return _paypal ( request ) except Exception as e : paypal_log . error ( ( '%s\n%s' % ( e , request ) ) , exc_info = True ) if settings . IN_TEST_SUITE : raise return http . HttpResponseServerError ( 'Unknown error.' )
handle paypal ipn post-back for contribution transactions .