Sha256: 22d4a00441839d52a834dee83964d8bafe883d91024fd9a0ec7aaceec356eb8c

Contents?: true

Size: 448 Bytes

Versions: 5

Compression:

Stored size: 448 Bytes

Contents

require 'bodega/optional'

module Bodega
  module PaymentMethod
    class Base
      extend Bodega::Optional

      attr_accessor :options, :order

      def checkout_url(success_url, cancel_url)
        raise "Implement #{self.class.name}#checkout_url"
      end

      def complete!(options = {})
        raise "Implement #{self.class.name}#complete!"
      end

      def initialize(order)
        self.order = order
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bodega-0.4.4 lib/bodega/payment_method/base.rb
bodega-0.4.3 lib/bodega/payment_method/base.rb
bodega-0.4.2 lib/bodega/payment_method/base.rb
bodega-0.4.1 lib/bodega/payment_method/base.rb
bodega-0.4.0 lib/bodega/payment_method/base.rb