Sha256: c4ebd16a5b395bf41ec2ce38366d1263c46f31309691585401b46c28ede506b8
Contents?: true
Size: 332 Bytes
Versions: 1
Compression:
Stored size: 332 Bytes
Contents
class PaymentCalculator::FlatRate < Calculator preference :amount, :decimal, :default => 0 # Register the calculator def self.register super PaymentMethod.register_calculator(self) end def self.description I18n.t("flat_rate_per_order") end def compute(object=nil) self.preferred_amount end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_payment_calculator-0.70.0 | app/model/payment_calculator/flat_rate.rb |