简体   繁体   English

使用Paypal IPN

[英]Working with Paypal IPN

What I want to do is have a buy it now button somewhere on my site. 我想做的是在我网站的某个位置有一个立即购买按钮。 When users log on they can click it and pay X amount, then after the transaction has completed I need a script to update 1 field in the database with a value. 当用户登录时,他们可以单击它并支付X金额,然后在交易完成后,我需要一个脚本来用值更新数据库中的1个字段。

Someone recommended using paypal ipn for this. 有人建议为此使用paypal ipn。

Is that the best solution for what I am trying to achieve? 这是我想要实现的最佳解决方案吗?

Will I need some additional script to work with it or is it "ready-made" with just specific database variables requiring changes? 我是否需要一些其他脚本来使用它,还是只需要更改某些特定数据库变量的“现成的”脚本?

Paypal has a much nicer workflow for this that does not make the user wait an undetermined time for his payment to arrive: Paypal Express Checkout . Paypal为此具有更好的工作流程,不会使用户等待未定的时间以使付款到达: Paypal Express Checkout With this you actually do know that he paid with paypal the very minute he comes back from the paypal page, and you can do all the things needed to make the transaction happen on your side as well. 有了这个,您实际上确实知道他在从Paypal页面回来的那一刻就用Paypal付款了,您也可以做所有必要的事情来完成交易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM