PayPal Standard不提供以访客身份退房的选项

时间:2011-12-16 02:44:27

标签: paypal

MVC 3 VB.NET应用程序...使用带有html razor视图的快速结账。我已经尝试了所有可以google的文档中提到的所有内容以及paypal的开发网络上的文档。我们的Paypal帐户设置为允许用户以访客身份结帐,无需创建或登录PayPal帐户。但是,当用户在点击结账按钮后被带到paypal网站时,没有选项可以作为访客进行结账。我包括我的结帐视图以供参考。请理解这是一个有效的问题,不要投票。如果有什么不清楚我会澄清它..

 @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>

我不觉得这里需要控制器的代码,因为它确实将所有值正确地传递到视图中...唯一的问题是我无法在客人工作时检查...

1 个答案:

答案 0 :(得分:0)

您是否在PayPal个人资料中打开了“可选帐户”? 您的帐户所在的国家/地区?所有国家/地区都不提供访客结帐功能。