它需要在asp.net c#web表單中集成paypal捐贈按鈕,點擊捐贈按鈕後,應該發送一封電子郵件給接收者,並捕獲捐贈者的詳細信息捐助者名稱,職業,地址和捐贈金額等。paypal捐款按鈕集成在asp.net c#
請任何人的幫助,將不勝感激。
感謝
它需要在asp.net c#web表單中集成paypal捐贈按鈕,點擊捐贈按鈕後,應該發送一封電子郵件給接收者,並捕獲捐贈者的詳細信息捐助者名稱,職業,地址和捐贈金額等。paypal捐款按鈕集成在asp.net c#
請任何人的幫助,將不勝感激。
感謝
使用此代碼asp.net頁面簡單的捐贈按鈕
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="myemail">
<input type="hidden" name="item_name" value="Item name">
<input type="hidden" name="item_number" value="Item ID">
<input type="hidden" name="amount" value="12.00">
<input type="hidden" name="buyer_credit_promo_code" value="">
<input type="hidden" name="buyer_credit_product_category" value="">
<input type="hidden" name="buyer_credit_shipping_method" value="">
<input type="hidden" name="buyer_credit_user_address_change" value="">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input name="cbt" value="Click here to confirm the payment" type="hidden"/>
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input name="CANCELURL" value='<%=errorurl %>' type="hidden"/>
<input name="return" value='<%=url %>' type="hidden"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
'errorurl' 和返回URL 'URL' 可以從codeback定義。
您還可以避免代碼中不需要的參數。
您可以在代碼的'img'標記中設置自定義圖像。
通過使用這個鏈接
https://www.paypal.com/cgi-bin/webscr?cmd=_donate-intro-outside
首先你要去通過與PayPal文件建立創建您自己的按鈕......這是去學習其中U需要的東西最好來源。
資源都還不錯。要通過現場設置示例,您可以訪問此LINK並瞭解如何在您的網站上實現相同。
注意:貝寶與網站集成在一起,並不提供像Web-API一樣的解決方案。