Sha256: d1a49a671eb2a9e1642bef46369de518c3eadd569c9f11672f747af59dbf8010

Contents?: true

Size: 514 Bytes

Versions: 5

Compression:

Stored size: 514 Bytes

Contents

module Braintree
  class LocalPaymentCompleted
    include BaseModule

    attr_reader :payment_id
    attr_reader :payer_id
    attr_reader :payment_method_nonce
    attr_reader :transaction

    def initialize(attributes) # :nodoc:
      set_instance_variables_from_hash(attributes)
      @transaction = Transaction._new(Configuration.gateway, transaction) unless transaction.nil?
    end

    class << self
      protected :new
    end

    def self._new(*args) # :nodoc:
      self.new *args
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
braintree-3.3.0 lib/braintree/local_payment_completed.rb
braintree-3.2.0 lib/braintree/local_payment_completed.rb
braintree-3.1.0 lib/braintree/local_payment_completed.rb
braintree-3.0.1 lib/braintree/local_payment_completed.rb
braintree-2.104.1 lib/braintree/local_payment_completed.rb