2015-10-20 36 views
0

我需要將PayPal集成到我的網站中,但不使用API​​,因爲它需要將API密鑰APY sescret和用戶名。在我的情況下,我的網站中有不同的供應商,他們不應該在我的網站上共享那些API信用。所以我只需要使用emailid接受付款。在不使用API​​的情況下集成PayPal

回答

0

如果您不想使用全部使用API​​憑證的Rest API,Adaptive Payments或Express Checkout,則可以使用PayPal Standard按鈕。 下面是一個基本的貝寶添加到購物車按鈕,例如:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" > 
<input type="hidden" name="cmd" value="_cart"> 
<input type="hidden" name="business" value="[email protected]"> 
<input type="hidden" name="lc" value="US"> 
<input type="hidden" name="item_name" value="Sample Add to Cart Button"> 
<input type="hidden" name="amount" value="10.00"> 
<input type="hidden" name="currency_code" value="USD"> 
<input type="hidden" name="button_subtype" value="products"> 
<input type="hidden" name="no_note" value="0"> 
<input type="hidden" name="add" value="1"> 
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest"> 
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> 
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> 
</form> 

您可以創建一個基本的添加到購物車在您的PayPal賬戶按鈕,或者您可以使用PayPal Button Factory
這裏是貝寶付款標準的基礎:
Basic PayPal Standard Integration Guide
PayPal Standard HTML Variable Guide

相關問題