Sha256: 073501aba378d0eafed558f60aa2fff5ae320f996762d7907fc7b16cd59b8535
Contents?: true
Size: 301 Bytes
Versions: 2
Compression:
Stored size: 301 Bytes
Contents
module Spree class PaymentMethod::SisowBilling::Purchase def initialize(source) @status = source.status.downcase end def success? @status == "success" end def authorization nil end def to_s success? ? super : "Payment failed" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_billing_sisow-0.9.2 | app/models/spree/payment_method/sisow_billing/purchase.rb |
spree_billing_sisow-0.9.1 | app/models/spree/payment_method/sisow_billing/purchase.rb |