PayPal集成到现有网站 [英] PayPal Integration to Existing Website

查看:96
本文介绍了PayPal集成到现有网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种将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 .

致谢!

推荐答案

如果使用PHP,则可以使用

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆