使用 Paypal 自适应支付 API(例如 Kickstarter 使用亚马逊支付)?

发布于 2024-09-02 01:22:56 字数 208 浏览 7 评论 0原文

我想知道是否可以像 Kickstarter.com 使用 Amazon Payments 进行集资/筹款那样使用 Paypal 自适应支付。

例如:用户设置了一个项目。人们向该项目承诺 5 美元,如果达到目标,系统就会自动从每个人那里提取资金,并将其存入创建该项目的贝宝帐户的用户中。使用 Paypal 可以吗?

如果可能的话,是否有任何好的 PHP 库支持自适应支付?

I'm wondering if it's possible to use Paypal Adaptive Payments in the way that Kickstarter.com are using Amazon Payments to collect/fundraise.

For example: A user sets up a project. People pledge $5 to that project, and if it meets a goal, the system then automatically extracts the money from everyone, and puts it into user who created the projects paypal account. Is this possible using Paypal?

Are there any good PHP libraries supporting Adaptive Payments, if this is possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

囚你心 2024-09-09 01:22:56

我也在寻找相同的答案,因为我正在开发一个与 Kickstarter 类似的众筹平台,但我需要使用 PayPal。

经过大量谷歌搜索和阅读有关 PayPal 自适应支付 API 的内容后,我发现可以通过使用预先批准 API 来实现,然后如果项目获得资助,我可以使用链式支付将资金发送给项目创建者,并保留少量费用(百分比)用于使用众筹平台。

如果您正在寻找一些 PHP 库,您可以在下面的链接中找到 2 个版本。
一个是 CodeIgniter 框架的库,另一个是可以在任何地方使用的 PHP API 类。因此,以下是链接:

CodeIgniter 库 - http: //www.binpress.com/app/paypal-adaptive- payments-pro-codeigniter-library/140

PHP API 类 - http://www.binpress.com/app/php-paypal-pro-adaptive-api-class/612

我明白了既然您的问题已经有 2 年了,我只是希望这个答案可以帮助其他人寻找有关 PayPal 自适应支付 API 的答案。

I was also looking for the same answer since I am working on a similar crowdfunding platform as Kickstarter is, but I need to use PayPal.

After a lot of Googling and reading about PayPal's Adaptive Payments API I found out that it's possible by using the Preapproval API and then if the project is funded I can use Chained Payments to send the money to the project creator and to also retain a small fee (a percentage) for using the crowdfunding platform.

If you are looking for some PHP libraries you can found 2 versions at the links below.
One is a library for the CodeIgniter framework and the other one is a PHP API class that can be used anywhere. So, here are the links:

CodeIgniter Library - http://www.binpress.com/app/paypal-adaptive-payments-pro-codeigniter-library/140

PHP API Class - http://www.binpress.com/app/php-paypal-pro-adaptive-api-class/612

I see now that your question is 2 years old, I just hope this answer helps others looking for answers regarding PayPal's Adaptive Payments API.

感受沵的脚步 2024-09-09 01:22:56

是的,可以使用自适应付款预批准 API。当有人“承诺”时,您将设置预先批准,然后您可以在将来的某个时间运行该预先批准的交易,而无需任何额外的交互。

PayPal 开发了一个 PHP SDK,其中包含可帮助您入门的库和示例。

Yes, it is possible using the Adaptive Payments Preapproval API. When someone 'pledges' would be when you set up the preapproval, and then you can run that preapproved transaction at some future time without any additional interaction required.

PayPal has developed a PHP SDK with libraries and examples to get you started.

终难遇 2024-09-09 01:22:56

如果您要使用 PayPal,这里有一个很好的 Ruby gem:adaptive payments-sdk-ruby

If you're going to use PayPal, there's a good Ruby gem: adaptivepayments-sdk-ruby

人生戏 2024-09-09 01:22:56

这个答案迟了几年,但迟到总比不到好!在 Kickstarter 类型的系统中使用自适应支付预批准 API 的一个缺点是,您无法保证提款时的“质押”有效,因为用户可以在任何时候。

This answer is a couple of years late but better late than never! The one downside to using the Adaptive Payments Preapproval API for a Kickstarter type of system is that you can't guarantee the "pledge" will be valid when you go to make the withdrawal, since it is possible for the user to cancel their pledge at any time.

み格子的夏天 2024-09-09 01:22:56

我一直在从事一个类似于 kickstarter 的众筹项目。我开始使用 paypal 的自适应支付来处理此类事情,但最终切换到 wepay 的 preapproval api< /a>.我很高兴我做到了。一方面,他们的文档更清晰、组织得更好,并提供了 PHP、Ruby 和 Python 的优秀示例。

I've been working on a crowdfunding project similar to kickstarter. I started out using paypal's adaptive payments for this kind of thing but I eventually switched to wepay's preapproval api. I'm glad I did. For one thing, their documentation is clearer and better organized with good examples in PHP, Ruby and Python.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文