我正在寻找一种将PayPal集成到我现有的非盈利网站的简单方法。我尝试按照PayPal(https://www.paypal-labs.com/integrationwizard/ecpaypal/code.php)提供的确切步骤进行操作,但尚未成功完成其工作。也许我错过了页面之间的关键连接,但我一无所知。
任何帮助(教程,示例,分步指南......)将不胜感激。
问候!
答案 0 :(得分:0)
如果您使用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');
...