Updating paypal csv import to new type

This commit is contained in:
Will Bradley 2015-10-27 09:43:27 -07:00
parent 5a8375581f
commit 6e13ec34ef

View File

@ -51,7 +51,7 @@ logger.fatal self.inspect
# Only create payments if the CSV matches a member # Only create payments if the CSV matches a member
if user.present? if user.present?
# And is a payment (not a cancellation, etc) # And is a payment (not a cancellation, etc)
payment_types = ["Recurring Payment Received","Payment Received"] payment_types = ["Subscription Payment Processed","Recurring Payment Received","Payment Received"]
if payment_types.include?(self._type) if payment_types.include?(self._type)
# And a member level # And a member level
if User.member_levels[self._gross.to_i].present? if User.member_levels[self._gross.to_i].present?