Skip to content

Commit

Permalink
Passing parameter so the checkout page displays the total amount.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando committed Apr 23, 2012
1 parent d2f8b6f commit 2fc03a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/paypal/recurring/response/checkout.rb
Expand Up @@ -3,7 +3,7 @@ module Recurring
module Response
class Checkout < Base
def checkout_url
"#{PayPal::Recurring.site_endpoint}?cmd=_express-checkout&token=#{token}"
"#{PayPal::Recurring.site_endpoint}?cmd=_express-checkout&token=#{token}&useraction=commit"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/paypal/response/checkout_spec.rb
Expand Up @@ -19,7 +19,7 @@

its(:valid?) { should be_true }
its(:errors) { should be_empty }
its(:checkout_url) { should == "#{PayPal::Recurring.site_endpoint}?cmd=_express-checkout&token=EC-6K296451S2213041J" }
its(:checkout_url) { should == "#{PayPal::Recurring.site_endpoint}?cmd=_express-checkout&token=EC-6K296451S2213041J&useraction=commit" }
end

context "when failure" do
Expand Down

0 comments on commit 2fc03a2

Please sign in to comment.