自动从 PayPal 帐户扣款?

发布于 2024-08-24 09:17:34 字数 250 浏览 2 评论 0原文

我想根据会员在我的网站上使用的服务自动向他们收取不同金额的费用。他们会累积所欠余额,然后每周都会向他们收取该金额的费用。有没有办法可以做到这一点,而无需将他们的信用卡信息存储在我的数据库中?

(类似于我的最后一个问题,但我刚刚意识到我真的不想经历必须安全存储 CC 信息的麻烦和责任问题)

I'd like to automatically charge my members a variable amount of money based on the services they use on my website. They would accumulate a balance owing, and then every week they would be charged for that amount. Is there a way I can do this without having to store their credit card information in my database?

(Similar to my last question, but I just realized I don't really want to go through the headaches and liability issues of having to safely store CC info)

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

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

发布评论

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

评论(2

半世晨晓 2024-08-31 09:17:34

为了实现这一点,您需要创建自己的订阅系统来管理订阅的“时间”以及“数量”。然后,您可以使用所选支付处理器的 API 来处理交易。

例如,使用 Authorize.Net 客户信息管理器 (CIM) API 来存储客户账单信息,包括他们的信用卡信息,然后有一个 cron 作业定期轮询数据库,当用户满足付款标准时,计算适当的金额,然后使用 CIM API 处理他们的信用卡。集成是无缝的,因此它看起来会尽可能专业。

To accomplish this you'll need to create your own subscription system that manages the "when" of the subscription as well as the "how much". You then can use the API of your chosen payment processor to process the transaction.

An example of this would be to use the Authorize.Net Customer Information Manager (CIM) API to store customer billing information, including their credit card information, and then have a cron job that periodically polls the database and, when a user meets the criteria for a payment, calculate the proper amount and then use the CIM API to process their credit card. The integration is seamless so it will look as professional as you can make it.

谁对谁错谁最难过 2024-08-31 09:17:34

我在我的网站上执行了类似的流程,并且有一些方法可以避免通过 API 来处理客户的信用卡。我们使用 Chargify 创建订阅系统,用于管理“何时”向您的客户收费以及“收费多少”。

我们的支付网关连接到 Chargify,后者存储所有信用卡信息,因此我们不必遵守 PCI 规定。 (如果需要,您可以使用 PayPal 作为支付网关)。这样我们就不必通过 API 来告诉我们的支付网关向客户的信用卡收费。

如果您朝着相同的方向前进并使用像 Chargify 这样的服务,您仍然需要创建一个 API 来告诉 Chargify 您的客户在您的网站上使用了多少服务,以便 Chargify 知道向您的客户收取多少费用。或者您可以手动输入客户当月使用的服务量,但如果您有很多客户,那么这将非常耗时。

I do a similar process on my website and there are ways to avoid going through an API to process your customer's credit cards. We use Chargify to create the subscription system that manages "when" your customer will be charged and "how much."

Our payment gateway is connected to Chargify, which stores all of the credit card information so we do not have to be PCI compliant. (you can use PayPal as your payment gateway if you want). This way we do not have to go through an API to tell our payment gateway to charge our customer's credit cards.

If you went in the same direction and used a service like Chargify you will still have to create an API that tells Chargify how many services that your customer's used on your website so that Chargify knows how much to charge your customers. Or you can manually input the amount of services that your customers used that month but if you have a lot of customers then that would be time consuming.

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