PHP 中的信用卡支付网关?

发布于 2024-08-04 14:25:19 字数 1564 浏览 6 评论 0原文

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

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

发布评论

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

评论(5

○愚か者の日 2024-08-11 14:25:19

Stripe 有一个 PHP 库,无需商家帐户即可接受信用卡:https://github.com/stripe/stripe-php

查看 文档常见问题解答,并随时删除如果您有更多问题,请通过我们的聊天室咨询。

Stripe has a PHP library to accept credit cards without needing a merchant account: https://github.com/stripe/stripe-php

Check out the documentation and FAQ, and feel free to drop by our chatroom if you have more questions.

烟酒忠诚 2024-08-11 14:25:19

如果您需要快速而简单的东西,您只需使用 PayPal 的“购买”按钮并将其放在您的页面上即可。这些将把人们带到异地 PayPal,在那里他们可以使用 PayPal 帐户或信用卡付款。这是免费的并且非常容易实现。

如果您想要更好的东西,让人们用信用卡现场支付,那么您可能需要考虑其中的第三部分支付提供商之一。 (据我所知)它们都不是完全免费的。所有交易都会收取每次交易费用,大多数还会收取月费。

就我个人而言,我曾使用过 Authorize.NET 和 PayPal Website Payments Pro。两者都有很棒的 AP​​I 和示例代码,您可以通过 PHP 轻松连接它们。

If you need something quick and dirty, you can just use PayPal's "Buy" buttons and drop them on your pages. These will take people off-site to PayPal where they can pay with a PayPal account or a credit card. This is free and super easy to implement.

If you want something a bit nicer where people pay on-site with their credit card, then you would want to look into one of those 3rd part payment providers. None of them (that I'm aware of) are completely free. All will have a per-transaction fee, and most will have a monthly fee as well.

Personally I've worked with Authorize.NET and PayPal Website Payments Pro. Both have great APIs and sample code that you can hook into via PHP easily enough.

送你一个梦 2024-08-11 14:25:19

那里有很多网关,但我不知道有一个可靠的免费网关。大多数网关(例如 PayPal)都会为您提供 API,允许您处理信用卡以及执行作废、收费或退款等操作。

您需要担心的另一件事是 PCI 合规性的到来,这基本上意味着,如果您不合规,您(或您工作的公司)将因您的商户银行和/或卡供应商在 7 月份之前不合规而承担责任2010 年。这将对您处以巨额罚款,并可能取消您处理信用卡的能力。

尽管如此,像 PayPal 这样的公司都有 PHP SDK:

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks

Authorize.Net:

href="http://developer.authorize .net/samplecode/" rel="noreferrer">http://developer.authorize.net/samplecode/

这是美国最流行的两个。

有关 PCI 信息,请参阅:

https://www.pcisecuritystandards.org/

There are more than a few gateways out there, but I am not aware of a reliable gateway that is free. Most gateways like PayPal will provide you APIs that will allow you to process credit cards, as well as do things like void, charge, or refund.

The other thing you need to worry about is the coming of PCI compliance which basically says if you are not compliant, you (or the company you work for) will be liable by your Merchant Bank and/or Card Vendor for not being compliant by July of 2010. This will impose large fines on you and possibly revoke the ability for you to process credit cards.

All that being said companies like PayPal have a PHP SDK:

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks

Authorize.Net:

http://developer.authorize.net/samplecode/

Those are two of the more popular ones for the United States.

For PCI Info see:

https://www.pcisecuritystandards.org/

梦在夏天 2024-08-11 14:25:19

Braintree 也有一个开源PHP 库 使 PHP 集成变得非常简单。

Braintree also has an open source PHP library that makes PHP integration pretty easy.

柠檬 2024-08-11 14:25:19

我们发现的最佳解决方案是与其中一位中介机构合作。否则,您将不得不处理许多其他要求,例如 PCI 合规性。我们使用 Verifone 的 IPCharge,效果非常好。

The best solution we found was to team up with one of those intermediaries. Otherwise you will have to deal with a bunch of other requirements like PCI compliance. We use Verifone's IPCharge and it works quite well.

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