我正在寻找一种简单的方式来集成PayPal到我现有的,非营利性的网站。我尝试按照PayPal ( https://www.paypal-labs.com/integrationwizard/ecpaypal/code.php )提供的步骤进行操作,但没有成功。也许我错过了页面之间的关键连接,但我一无所知。
任何帮助(教程、示例、分步指南... )将不胜感激。
致以问候!
发布于 2011-11-11 00:00:01
如果你使用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
(start snippet 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');
...
https://stackoverflow.com/questions/8081967
复制相似问题