Sha256: 10c5cd0f309db4b3d4b954009279b851c56197d27c5ba8a3f1191835cf3cbe78

Contents?: true

Size: 611 Bytes

Versions: 12

Compression:

Stored size: 611 Bytes

Contents

module Braintree
  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

12 entries across 12 versions & 1 rubygems

Version Path
braintree-2.95.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.94.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.93.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.92.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.91.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.90.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.89.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.88.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.87.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.86.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.85.0 lib/braintree/ideal_payment_gateway.rb
braintree-2.84.0 lib/braintree/ideal_payment_gateway.rb