For now, ignore cancellations.
This commit is contained in:
parent
a75e4f48aa
commit
2c0ad3a848
|
@ -1523,10 +1523,11 @@ class Users( object ):
|
||||||
self.update_groups( user )
|
self.update_groups( user )
|
||||||
self.__database.commit()
|
self.__database.commit()
|
||||||
elif txn_type == u"subscr_cancel":
|
elif txn_type == u"subscr_cancel":
|
||||||
user.rate_plan = 0 # return the user to the free account level
|
pass # HACK: for now, ignore cancellations
|
||||||
self.__database.save( user, commit = False )
|
# user.rate_plan = 0 # return the user to the free account level
|
||||||
self.update_groups( user )
|
# self.__database.save( user, commit = False )
|
||||||
self.__database.commit()
|
# self.update_groups( user )
|
||||||
|
# self.__database.commit()
|
||||||
elif txn_type in ( u"subscr_payment", u"subscr_failed", "subscr_eot" ):
|
elif txn_type in ( u"subscr_payment", u"subscr_failed", "subscr_eot" ):
|
||||||
pass # for now, ignore payments and let paypal handle them
|
pass # for now, ignore payments and let paypal handle them
|
||||||
else:
|
else:
|
||||||
|
|
Reference in New Issue