lib/ideal-mollie.rb in ideal-mollie-0.0.5 vs lib/ideal-mollie.rb in ideal-mollie-0.0.6
- old
+ new
@@ -13,10 +13,13 @@
#
# IdealMollie Module
#
module IdealMollie
+ # Mollie API url
+ MOLLIE_URL = "https://secure.mollie.nl/xml/ideal"
+
#
# List of supported banks.
#
# @visibility public
#
@@ -136,10 +139,10 @@
end
private
def connection
- @connection ||= Faraday::Connection.new(:url => "https://secure.mollie.nl/xml/ideal",
+ @connection ||= Faraday::Connection.new(:url => IdealMollie::MOLLIE_URL,
:headers => {:user_agent => "Ruby-IdealMollie"},
:ssl => {:verify => false}) do |builder|
builder.adapter Faraday.default_adapter
builder.use FaradayMiddleware::ParseXml
end