PayPal集成到现有网站 [英] PayPal Integration to Existing Website
问题描述
我正在寻找一种将PayPal集成到我现有的非营利性网站的简单方法.我尝试按照PayPal( https://www.paypal- labs.com/integrationwizard/ecpaypal/code.php ),但尚未成功实现.也许我错过了页面之间的关键联系,但我一无所知.
I am looking for a simple way to integrate PayPal to my existing , non-profit , website . I tried following the exact steps as provided by PayPal ( https://www.paypal-labs.com/integrationwizard/ecpaypal/code.php ) , but haven't been successful in making it work . Maybe I'm missing out on key connections between pages , but I'm clueless .
任何帮助(教程,示例,分步指南...)将不胜感激.
Any help ( tutorials , examples , step-by-step guidelines ... ) will be appreciated .
致谢!
推荐答案
If you use PHP, you could use the 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个代码段)
(start snippet 1 - total of 6 snippets)
// 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集成到现有网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!