Sha256: 18fb0856ed82279337e87e22f483472460b9dadba90ca0d27490b5b2762c4f5a

Contents?: true

Size: 499 Bytes

Versions: 11

Compression:

Stored size: 499 Bytes

Contents

module Braintree
  class SEPABankAccountGateway
    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/sepa_bank_account/#{token}"
      SEPABankAccount._new(@gateway, response[:sepa_bank_account])
    rescue NotFoundError
      raise NotFoundError, "payment method with token #{token.inspect} not found"
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
braintree-2.40.0 lib/braintree/sepa_bank_account_gateway.rb
braintree-2.39.0 lib/braintree/sepa_bank_account_gateway.rb
braintree-2.38.0 lib/braintree/sepa_bank_account_gateway.rb
braintree-2.37.0 lib/braintree/sepa_bank_account_gateway.rb
braintree-2.36.0 lib/braintree/sepa_bank_account_gateway.rb
braintree-2.35.0 lib/braintree/sepa_bank_account_gateway.rb
braintree-2.34.1 lib/braintree/sepa_bank_account_gateway.rb
braintree-2.34.0 lib/braintree/sepa_bank_account_gateway.rb
braintree-2.33.1 lib/braintree/sepa_bank_account_gateway.rb
braintree-2.33.0 lib/braintree/sepa_bank_account_gateway.rb
braintree-2.32.1 lib/braintree/sepa_bank_account_gateway.rb