Sha256: 8a1ee26a75a801e8cf1b43b7df6ca70fef314516385a2d4a922798e7bab91f82

Contents?: true

Size: 583 Bytes

Versions: 63

Compression:

Stored size: 583 Bytes

Contents

module Braintree
  class EuropeBankAccountGateway
    def initialize(gateway)
      @gateway = gateway
      @config = gateway.config
      @config.assert_has_access_token_or_keys
    end

    def find(token)
      raise ArgumentError if token.nil? || token.to_s.strip == ""
      response = @config.http.get("#{@config.base_merchant_path}/payment_methods/europe_bank_account/#{token}")
      EuropeBankAccount._new(@gateway, response[:europe_bank_account])
    rescue NotFoundError
      raise NotFoundError, "payment method with token #{token.inspect} not found"
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
braintree-2.68.1 lib/braintree/europe_bank_account_gateway.rb
braintree-2.68.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.67.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.66.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.65.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.64.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.63.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.62.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.61.1 lib/braintree/europe_bank_account_gateway.rb
braintree-2.61.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.60.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.59.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.58.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.57.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.56.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.55.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.54.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.50.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.49.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.48.1 lib/braintree/europe_bank_account_gateway.rb