MVC 3 VB.NET應用程序...使用快速結帳與html剃刀視圖。我已經嘗試了所有文檔中提到的所有文檔,我可以谷歌和貝寶的開發網絡。我們的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>
我不覺得控制器在這裏需要的,因爲它不正確地傳遞所有的值到視圖代碼......唯一的問題是我作爲客人工作時無法退房...
編輯您的問題,因爲您使用網站付款標準,而不是快速結帳。 – Robert 2011-12-17 15:50:26