I am trying to implement paypal express checkout using rails. I have read
at lot of places that if one wants to do the checkout without paypal
account by credit or debit card one can simply useSOLUTIONTYPE=Sole. It
does not seem to work though and asks for login when I try to checkout.
Please find the attached screenshot which shows this problem.
def pay
topup = Topup.find(params[:id])
response = EXPRESS_GATEWAY.setup_purchase(topup.price_in_cents,{
:ip => request.remote_ip,
:currency_code => ''GBP'',
:return_url => topups_success_url,
:cancel_return_url => topups_cancel_url,
:SOLUTIONTYPE => ''Sole'',
:items => [{:name => "Topup", :quantity =>
1,:description => "Top up my account", :amount =>
topup.price_in_cents}]
})
redirect_to EXPRESS_GATEWAY.redirect_url_for(response.token)
end
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/gJOdB0xByFIJ.
For more options, visit https://groups.google.com/groups/opt_out.