Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add more optional parameters for SetExpressCheckout request

close #29
  • Loading branch information...
commit 580b8c43bd8ac0b482c9972bc0754aa26221dcd0 1 parent 5e806c3
@nov authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/paypal/express/request.rb
View
6 lib/paypal/express/request.rb
@@ -15,8 +15,10 @@ def setup(payment_requests, return_url, cancel_url, options = {})
end
{
:solution_type => :SOLUTIONTYPE,
- :landing_page => :LANDINGPAGE,
- :email => :EMAIL
+ :landing_page => :LANDINGPAGE,
+ :email => :EMAIL,
+ :brand => :BRANDNAME,
+ :locale => :LOCALECODE
}.each do |option_key, param_key|
params[param_key] = options[option_key] if options[option_key]
end
Please sign in to comment.
Something went wrong with that request. Please try again.