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.104.1 lib/braintree/europe_bank_account_gateway.rb
braintree-2.104.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.103.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.102.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.101.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.100.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.99.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.98.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.97.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.96.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.95.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.94.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.93.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.92.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.91.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.90.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.89.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.88.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.87.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.86.0 lib/braintree/europe_bank_account_gateway.rb