Sha256: cc4b9ee1d3343e4bff7b61a9804c39134f31928abd9b5a3616b8199f50da37e4

Contents?: true

Size: 507 Bytes

Versions: 5

Compression:

Stored size: 507 Bytes

Contents

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

    def find(token)
      raise ArgumentError if token.nil? || token.to_s.strip == ""
      response = @config.http.get "/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

5 entries across 5 versions & 1 rubygems

Version Path
braintree-2.45.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.44.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.43.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.42.0 lib/braintree/europe_bank_account_gateway.rb
braintree-2.41.0 lib/braintree/europe_bank_account_gateway.rb