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