Sha256: 10a167d2197908fab3fa2e2dd2351204bf6f97c477c2ceeac8acf6826f7827c7

Contents?: true

Size: 557 Bytes

Versions: 2

Compression:

Stored size: 557 Bytes

Contents

module Spree
  class PaymentMethod::SisowBilling::SisowPaymentMethod < PaymentMethod
    def payment_profiles_supported?
      false
    end

    def auto_capture?
      true
    end

    def purchase(_amount, source, _opts)
      PaymentMethod::SisowBilling::Purchase.new(source)
    end

    def redirect_url(order, opts = {})
      sisow = PaymentMethod::SisowBilling.new(order)
      sisow.start_transaction(payment_type, opts)
    end

    def payment_type
      raise "this method should be overriden and return the type of payment"
    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/sisow_payment_method.rb
spree_billing_sisow-0.9.1 app/models/spree/payment_method/sisow_billing/sisow_payment_method.rb