1. pombredanne
  2. cciw-website2

Commits

Luke Plant  committed e1e9c22

Fixed views for paypal return URLs to accept POST and show a simple page

  • Participants
  • Parent commits 8551962
  • Branches bookings

Comments (0)

Files changed (1)

File cciw/bookings/views.py

View file
     metadata_title = "Booking - payment complete"
     template_name = "cciw/bookings/pay_done.html"
 
+    # Paypal wants to post to this view
+    def post(self, *args, **kwargs):
+        return self.get(*args, **kwargs)
 
 class BookingPayCancelled(DefaultMetaData, TemplateView):
     metadata_title = "Booking - payment cancelled"
     template_name = "cciw/bookings/pay_cancelled.html"
 
+    def post(self, *args, **kwargs):
+        return self.get(*args, **kwargs)
+
 
 index = BookingIndex.as_view()
 start = BookingStart.as_view()