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