我正在寻找一种将 PayPal 集成到我现有的非营利性网站的简单方法。我尝试按照 PayPal (https://www.paypal-labs.com/integrationwizard/ecpaypal/code.php) 提供的确切步骤进行操作,但没有成功使其工作。也许我错过了页面之间的关键联系,但我一无所知。
任何帮助(教程、示例、分步指南...)将不胜感激。
问候!
最佳答案
如果您使用 PHP,您可以使用 PHP Payment Library :
配置非常简单:
HTML
<form method="post" action="payment/paypal_start.php">
<input type="text" name="item_name" />
<input type="text" name="amount">
<input type="submit" />
</form>
paypal_start.php
(开始片段 1 - 总共 6 个片段)
// Include the paypal library
include_once ('Paypal.php');
// Create an instance of the paypal library
$myPaypal = new Paypal();
// Specify your paypal email
$myPaypal->addField('business', 'your@mail.com');
// Specify the currency
$myPaypal->addField('currency_code', 'EUR');
...
关于 Paypal 与现有网站的整合,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8081967/