Paypal charge commission

Could we instead of just extracting the comission calculation have a method that returns this hash and doesn't depend on model? This logic should have a rspec test and it would be easier if the full logic is a function of inputs not depending on models.