def get_discount_payments(cart_id)

			discount_payments = Auth.configuration.payment_class.constantize.where(:cart_id => cart_id, :discount_id.nin => ["", nil], :payment_status => 1)
			discount_payments
		end
def get_discount_payments(cart_id)

			discount_payments = Auth.configuration.payment_class.constantize.where(:cart_id => cart_id, :discount_id.nin => ["", nil], :payment_status => 1)
			discount_payments
		end
will return discount_payments of this cart id with a payments_status of 1.