Set landing page for paypal with activemerchant

244 views
Skip to first unread message

AstonJ

unread,
Feb 28, 2012, 3:13:33 PM2/28/12
to activem...@googlegroups.com
I'm trying to set the landing page on paypal to show the "Don't have a paypal account?' by default - the API says set LANDINGPAGE to Billing, but the below does not work:

:landing_page => 'Billing' Any ideas on how to fix it?  

Cheers,

Jacob Green

unread,
Feb 28, 2012, 4:40:19 PM2/28/12
to activem...@googlegroups.com
I believe what you want to do is to set

:allow_guest_checkout => true

in the setup_purchase method.

This will set the landing_page to billing and the solution_type to sole


if options[:allow_guest_checkout]
  xml.tag! 'n2:SolutionType', 'Sole'
  xml.tag! 'n2:LandingPage', 'Billing'
end

AstonJ

unread,
Feb 28, 2012, 4:53:12 PM2/28/12
to activem...@googlegroups.com
Awesome! That works! Thanks Jacob :-)
Reply all
Reply to author
Forward
0 new messages