我如何将 Paypal 用于我网站的高级部分并处理高级用户与普通用户的关系?

发布于 2024-08-16 11:49:51 字数 387 浏览 1 评论 0原文

我想实现这样的目标

http://depositfiles.com/en/gold/ payment.php

我有普通用户注册。我希望他们升级到高级用户。一旦有人付款,我如何知道他登录的是哪个用户?我如何强制用户先登录,然后才能单击 paypal 按钮并进行付款?否则,我会收到钱,但不知道在我的数据库中将哪个用户标记为“已付费”。

当您点击 paypal 按钮时,它会将您重定向到可以登录和付款的 paypal 页面。

我也想接受 Visa 和 Mastercards,是否可以使用相同的方法通过 paypal 进行支付?

I want to achieve something like this

http://depositfiles.com/en/gold/payment.php

I have normal users signed up. I want them to upgrade to premium user. Once a person pays, how do I know which user he was signed in ? How do i force the user to login first before being able to click the paypal button and make payment ? Otherwise, I would receive money, but wouldn't know which user to mark as "PAID" in my database.

when you click on the paypal button, it redirects you to the paypal page where you can login and pay.

I also want to accept Visa and Mastercards, is it doable through paypal using the same method ?

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

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

发布评论

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

评论(3

葬花如无物 2024-08-23 11:49:51

Paypal 的信息可以在这里找到:
第 1 部分

您可以为所需的每种订阅类型创建一个订阅按钮,并使用第 2 部分中的 HTML 变量来了解发票中包含的产品类型和用户。

Paypal's information can be found here:
Part 1

You can create a subscribe button for each type of subscription you want and use the HTML variables in Part 2 to enable you to know what type of product and what user is included in the invoice.

寄意 2024-08-23 11:49:51

这需要比您当前提供的更多详细信息。您的网站是用什么语言编写的?静态 HTML?红宝石? PHP? PayPal 的支付系统如何运作?

This needs a lot more details than you currently provide. What language have you written your website in? Static HTML? Ruby? PHP? How does PayPal's payment system work?

无风消散 2024-08-23 11:49:51

通常,它的工作方式是您的网站将信息传递给 paypal (http://paypal.sourceforge.net/< /a> 是一个似乎是为 php 制作的工具包,我以为我从未使用过它,所以我不能真正保证它不会放弃软件)。

一旦贝宝交易成功完成,控制权就会传回您的网站。然后,您可以在数据库中将该用户的标志设置为高级用户。

据我所知,您告诉贝宝为您处理付款,然后用户在贝宝中选择资金来源。如果您想将 Visa/MasterCard 与 Paypal 分开处理,您将需要另一个支付网关来处理它,例如 mirapay 或其他东西。

normally the way it will work is that your site will pass information to paypal (http://paypal.sourceforge.net/ is one toolkit that seems to be made for php, thought I've never used it so I can't really promise its not abandonware).

once the paypal transaction is completed successfully, control is passed back to your site. you can then set the user's flag in your database as a premium user.

as far as I can tell, you tell paypal to handle payments for you, and the user picks a funding source in paypal. if you want to have visa/mastercard separately handled from paypal you'll need another payment gateway to handle it, like mirapay or something else.

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