Browse Source

For now, ignore cancellations.

Dan Helfman 9 years ago
parent
commit
2c0ad3a848
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      controller/Users.py

+ 5
- 4
controller/Users.py View File

@@ -1523,10 +1523,11 @@ class Users( object ):
1523 1523
       self.update_groups( user )
1524 1524
       self.__database.commit()
1525 1525
     elif txn_type == u"subscr_cancel":
1526
-      user.rate_plan = 0 # return the user to the free account level
1527
-      self.__database.save( user, commit = False )
1528
-      self.update_groups( user )
1529
-      self.__database.commit()
1526
+      pass # HACK: for now, ignore cancellations
1527
+#      user.rate_plan = 0 # return the user to the free account level
1528
+#      self.__database.save( user, commit = False )
1529
+#      self.update_groups( user )
1530
+#      self.__database.commit()
1530 1531
     elif txn_type in ( u"subscr_payment", u"subscr_failed", "subscr_eot" ):
1531 1532
       pass # for now, ignore payments and let paypal handle them
1532 1533
     else:

Loading…
Cancel
Save