Skip to content

Commit

Permalink
The current URL used in the form is wrong. It should be the same as t…
Browse files Browse the repository at this point in the history
…he one given at the official manual.
  • Loading branch information
kurko committed Jun 13, 2011
1 parent 734aa88 commit 9d17b77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pagseguro/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module PagSeguro

# PagSeguro receives all invoices in this URL. If developer mode is enabled,
# then the URL will be /pagseguro_developer/invoice
GATEWAY_URL = "https://pagseguro.uol.com.br/pagseguro-ws/checkout/NPI.jhtml"
GATEWAY_URL = "https://pagseguro.uol.com.br/checkout/checkout.jhtml"

# Hold the config/pagseguro.yml contents
@@config = nil
Expand Down
2 changes: 1 addition & 1 deletion spec/pagseguro/pagseguro_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module PagSeguro; @@config = nil; end

it "should return real url if developer mode is disabled" do
PagSeguro.should_receive(:developer?).and_return(false)
PagSeguro.gateway_url.should == "https://pagseguro.uol.com.br/pagseguro-ws/checkout/NPI.jhtml"
PagSeguro.gateway_url.should == "https://pagseguro.uol.com.br/checkout/checkout.jhtml"
end

it "should read configuration developer mode" do
Expand Down
2 changes: 1 addition & 1 deletion spec/support/config/boot.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENV["BUNDLE_GEMFILE"] = File.dirname(__FILE__) + "/../../../../Gemfile"
ENV["BUNDLE_GEMFILE"] = File.dirname(__FILE__) + "/../../../Gemfile"
require "bundler"
Bundler.setup
require "rails/all"
Expand Down

0 comments on commit 9d17b77

Please sign in to comment.