+
+
+@login_required
+def claim(request, key):
+ funding = get_object_or_404(Funding, notify_key=key)
+ if funding.user is None:
+ funding.user = request.user
+ funding.save()
+ return HttpResponseRedirect(
+ funding.offer.book.get_absolute_url() if funding.offer.book is not None
+ else funding.offer.get_absolute_url()
+ )
+
+
+class PayUNotifyView(club.payu.views.NotifyView):
+ order_model = Funding
+