Sha256: 668f4ebd9ad19ddb29293f22c461ee2674753e037b043a99fdd486e8e94b78a2

Contents?: true

Size: 843 Bytes

Versions: 10

Compression:

Stored size: 843 Bytes

Contents

module Braintree
  # NEXT_MAJOR_VERSION Remove this class as legacy Ideal has been removed/disabled in the Braintree Gateway
  # DEPRECATED If you're looking to accept iDEAL as a payment method contact accounts@braintreepayments.com for a solution.
  class IdealPaymentGateway
    def initialize(gateway)
      @gateway = gateway
      @config = gateway.config
      @config.assert_has_access_token_or_keys
    end

    def find(ideal_payment_id)
      raise ArgumentError if ideal_payment_id.nil? || ideal_payment_id.to_s.strip == ""
      response = @config.http.get("#{@config.base_merchant_path}/ideal_payments/#{ideal_payment_id}")
      IdealPayment._new(@gateway, response[:ideal_payment])
    rescue NotFoundError
      raise NotFoundError, "ideal payment with ideal_payment_id #{ideal_payment_id.inspect} not found"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
braintree-2.104.1 lib/braintree/ideal_payment_gateway.rb
braintree-2.104.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.103.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.102.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.101.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.100.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.99.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.98.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.97.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.96.0 lib/braintree/ideal_payment_gateway.rb