Sha256: 0b45b51624b96afa6c4919a64476da6b2d08d45961374b087044501b527a1e1f

Contents?: true

Size: 361 Bytes

Versions: 5

Compression:

Stored size: 361 Bytes

Contents

module SolidusBraintree
  module InjectDeviceDataConcern
    extend ActiveSupport::Concern
    included do
      prepend(InstanceMethods)
    end

    module InstanceMethods
      def gateway_options
        options = super

        options[:device_data] = order.braintree_device_data if order.braintree_device_data

        options
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_braintree-1.4.0 app/models/concerns/solidus_braintree/inject_device_data_concern.rb
solidus_braintree-1.3.0 app/models/concerns/solidus_braintree/inject_device_data_concern.rb
solidus_braintree-1.2.0 app/models/concerns/solidus_braintree/inject_device_data_concern.rb
solidus_braintree-1.1.0 app/models/concerns/solidus_braintree/inject_device_data_concern.rb
solidus_braintree-1.0.0 app/models/concerns/solidus_braintree/inject_device_data_concern.rb