Sha256: 29fec5b6a9b2462b4975040eda8cab4403047f1a9d107b7984b2f50e0f35b214
Contents?: true
Size: 637 Bytes
Versions: 3
Compression:
Stored size: 637 Bytes
Contents
module Spree class Gateway::Gtpay < Gateway preference :payment_url, :string preference :merchant_id, :string attr_accessible :preferred_payment_url, :preferred_merchant_id def actions %w{capture void} end def can_capture?(payment) ['checkout', 'pending'].include?(payment.state) end def can_void?(payment) payment.state != 'void' end def capture(*args) ActiveMerchant::Billing::Response.new(true, "", {}, {}) end def void(*args) ActiveMerchant::Billing::Response.new(true, "", {}, {}) end def source_required? false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_gtpay-1.0.2 | app/models/spree/gateway/gtpay.rb |
spree_gtpay-1.0.1 | app/models/spree/gateway/gtpay.rb |
spree_gtpay-1.0.0 | app/models/spree/gateway/gtpay.rb |