MVC 3 VB.NET applicaiton… Using express checkout with html razor view. I have tried everything mentioned in all of the docs i could google for as well as the ones on paypal’s dev network. Our Paypal account is setup to allow users to Check out as Guest without requiring paypal account creation or login. However when users are taken to the paypal site after clicking the checkout button there is no option to check out as guest. I am including my checkout view for reference. Please understand that this is a valid question and do not down vote it. If there is something not clear I will clarify it..
@modeltype xxxxxxx.orderVM
@Code
ViewData("Title") = "CheckOut"
End Code
<p style="text-align:center">Once you complete your transaction you will be redirected back to the site</p>
<p></p>
<p style="text-align:center">We will process your payment within 24 hours at which time you will recieve a confirmation email which you will need for addmission. Along with a PDF attachment in this email which is your parking permit.. Please print and follow the instructions</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p style="text-align: center"> Please Click on the paypal button below to be redirected to the PayPal Site to complete the payment Transaction</p>
<form id="PayPal" name="PayPal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
@Html.Hidden("cmd", "_cart")
@Html.Hidden("upload", "1")
@Html.Hidden("business", ConfigurationManager.AppSettings("PayPalMerchantEmail"))
@Html.Hidden("page_style","primary")
@Html.Hidden("custom", Model.id.ToString)
@Html.Hidden("image_url", "http://www.xxxxxxxxxx.com/content/images/xxxxxxxxLogo.jpg")
@Html.Hidden("cpp_header_image", "http://www.xxxxxxxx.com/content/images/xxxxxxxLogo.jpg")
@Html.Hidden("cpp_logo_image", "http://www.xxxxxxxxxxe.com/content/images/xxxxxxxLogo.jpg")
@Html.Hidden("return", "http://www.xxxxxxxxxx.com/")
@Html.Hidden("cancel_return", "http://www.xxxxxxxxxx.com")
@Html.Hidden("first_name", Model.first_name)
@Html.Hidden("last_name", Model.last_name)
@Html.Hidden("address1", Model.address1)
@Html.Hidden("address2", Model.address2)
@Html.Hidden("city", Model.city)
@Html.Hidden("state", Model.state)
@Html.Hidden("zip", Model.zip)
@If Not String.IsNullOrEmpty(Model.Class1) Then
@Html.Hidden("item_name_1", Model.Class1)
@Html.Hidden("amount_1", Model.fee1)
@Html.Hidden("quantity_1", ViewBag.quan)
@Html.Hidden("shipping_1", " 0.00 ")
@Html.Hidden("handling_1", " 0.00 ")
End If
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" align="middle" style="text-align:center"/>
</form>
I do not feel the code for the controller is required here since it does pass all the values correctly into the view… The only issue is I can not get check out as guest working…
Have you turned on ‘Account Optional’ in your PayPal Profile?
Which country is your account located in? The guest checkout functionality is not available in all countries yet.