如何验证 PayPal ID?

发布于 2024-08-25 18:33:31 字数 149 浏览 4 评论 0原文

我有一个用 ASP 编写的具有简单表单的应用程序。用户使用他们的 PayPal ID 填写表格,以接收兑换积分的资金。

我想在他们使用某种 http 请求提交表单之前验证 PayPal ID。我研究过 PayPal API,但没有找到任何东西。

谢谢。

I have an application writted in ASP with a simple form. The users fill up the form with their PayPal ID to receive money exchanging their points.

I want to verify the PayPal ID before they submit the form using some kind of http request. I have looking into the PayPal API but i didn't find anything.

Thanks.

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

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

发布评论

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

评论(1

看海 2024-09-01 18:33:31

如果 PayPal api 不支持调用的“验证”,那么通常的替代方案如下:

  1. 在您的应用程序中创建一个“paypal_ids”数据库表
  2. 当某人输入 PayPal ID 时,检查您的表以查看您是否已经验证之前交易的 ID。如果有,那么一切都准备好了。 -- 您还可以在表中保留错误的 ID,以充当负缓存。
  3. 要验证 Paypal ID,只需尝试针对该 ID 进行真实交易,即尝试向该 ID“发送”1 便士。如果有效,则您已验证该 ID。将结果存储在表中并从那里继续。

这就是贝宝验证支票账户的方式——通过进行一笔小而真实的测试交易。

If the PayPal api doesn't support a "verify" of call, then here's the usual alternative:

  1. Create a "paypal_ids" database table in your application
  2. When a PayPal id is entered by someone, check your table to see if you have already validated the id for a previous transaction. If you have, then you're all set. -- You could also keep bad ids in the table, to act as a negative cache.
  3. To validate a paypal id, just attempt to do a real transaction against the id, where you try to "send" 1 penny to the id. If it works, then you've validated the id. Store your results in your table and go on from there.

This is how paypal validates checking accounts--by doing a small, but real, test transaction.

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