Sha256: 772cc2f2974774b13bfc9ee8ea52ef574955f374c1081fc1289cf0a31f54d0ad

Contents?: true

Size: 450 Bytes

Versions: 9

Compression:

Stored size: 450 Bytes

Contents

module Payanyway
  module Request
    class Base
      @@_params = { 'MNT_TRANSACTION_ID' => :transaction_id }.invert.to_settings

      attr_reader :pretty_params

      def initialize(params)
        @params = params
        @pretty_params = @@_params.configure_by(params)
      end

      def error_message
        "ERROR! Invalid signature for order #{ @pretty_params[:transaction_id] }. Params: #{ @params.inspect }"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
payanyway-2.3.1 lib/payanyway/request/base.rb
payanyway-2.3.0 lib/payanyway/request/base.rb
payanyway-2.2.2 lib/payanyway/request/base.rb
payanyway-2.2.1 lib/payanyway/request/base.rb
payanyway-2.2.0 lib/payanyway/request/base.rb
payanyway-2.1.0 lib/payanyway/request/base.rb
payanyway-2.0.2 lib/payanyway/request/base.rb
payanyway-2.0.1 lib/payanyway/request/base.rb
payanyway-2.0.0 lib/payanyway/request/base.rb