2011-12-14 56 views
3

我想在.net上設置PayPal的訂閱付款。我正在測試沙箱。當我將表單提交給paypal並在沙箱中進行付款,然後單擊Return to Merchant時,我得到一個包含一些加密文本的auth變量。我期望查詢或表單變量包含成功或失敗的細節。貝寶返回驗證,沒有別的作爲返回數據的訂閱

任何人都可以幫助我嗎?我找不到任何文件,儘管我在一個有同樣問題的人的論壇上找到了一個沒有答案的問題。

我使用下面的代碼爲貝寶形式

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" 

id="paypaldata"> 
<input type="hidden" name="cmd" value="_xclick-subscriptions"/> 
<input type="hidden" name="business" value="[email protected]"/> 
<input type="hidden" name="item_name" value="Hidden Subscription"/> 
<input type="hidden" name="a3" value="27.00"/> 
<input type="hidden" name="p3" value="1"/> 
<input type="hidden" name="t3" value="M"/> 
<input type="hidden" name="src" value="1"/> 
<input type="hidden" name="currency_code" value="USD" /> 
<input type="hidden" name="srt" value="0"/> 
<input type="hidden" name="sra" value="1"/> 
<input type="hidden" name="no_shipping" value="1" /> 
<input type="hidden" name="custom" value="@ViewBag.Softid" /> 
<input type="hidden" name="return" value="http://localhost:5511/order/paypal" /> 
</form> 
+0

以下代碼是? – Josh 2011-12-15 05:33:36

回答

0

好吧,看起來像我註定要回答我的所有問題最近自己。我找到了答案。

原因是我在我的Paypal帳戶上啓用了IPN,並且我未能在此代碼中包含notify_url。當我包含一個notify_url時,Paypal開始向我發送包含事務細節的事務變量。