Switch to .3 rate

This commit is contained in:
Seth Call 2025-03-07 19:25:26 -06:00
parent 2a3d0784e2
commit c28b6a179c
1 changed files with 2 additions and 1 deletions

View File

@ -154,6 +154,7 @@ class JamRuby::AffiliatePartner < ActiveRecord::Base
# subtract the total quantity from the freebie quantity, to see how much we should attribute to them
real_quantity = product_info[:quantity].to_i - product_info[:marked_for_redeem].to_i
{fee_in_cents: (rate * product_info[:real_price]).round}
# if shopping_cart.is_lesson?
# applicable_rate = lesson_rate
# else
@ -161,7 +162,7 @@ class JamRuby::AffiliatePartner < ActiveRecord::Base
# end
#{fee_in_cents: (product_info[:price] * 100 * real_quantity * applicable_rate.to_f).round}
{ fee_in_cents: (real_quantity * jamtrack_share_in_cents.to_f).round}
# { fee_in_cents: (real_quantity * jamtrack_share_in_cents.to_f).round}
else
false
end