我正在開發電子商務應用程序,要求使用PayPal支付網關通過信用卡/借記卡從客戶那裏獲得付款。我已經通過開發者網站上的所有PayPal API類型,但是我找不到我需要的那個。任何人都可以幫助我擺脫困惑,哪一個是正確的API代碼使用。哪一個是正確的PayPal API代碼用於信用卡/借記卡付款?
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="[email protected]">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Camera">
<input type="hidden" name="item_number" value="CAM0548">
<input type="hidden" name="amount" value="2.0">
<input type="hidden" name="currency_code" value="USD">
<!-- Specify URLs -->
<input type='hidden' name='cancel_return' value='http://localhost/paypal/cancel.php'>
<input type='hidden' name='return' value='http://localhost/paypal/success.php'>
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" alt="PayPal - The safer, easier way to pay online">
<img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
</form>
https://github.com/paypal/PayPal-PHP-SDK – castis