create checkout.rb mixin for handling stateless payment amount calculations