立即获取贝宝付款的注册数据 [英] get registration data on paypal pay now

查看:90
本文介绍了立即获取贝宝付款的注册数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Paypal上注册时遇到问题.当我有新用途并在我的网站上注册时,我需要获取数据并将其添加到数据库中.

I am having problems with registration on paypal. I need to get and add data to my database when a new use and registers with my website.

基本上,该网站需要付费才能注册新用户.我需要在Paypal Pay Now按钮上注册数据,因此您将被重定向到Paypal Pay页面并同时将数据添加到数据库.或成功付款时.

Basically the website register new user with a fee. I need register data on paypal pay now button, so you will be redirected to paypal pay page and add data to database at the same time. or when pay successfully.

任何帮助,我正在使用mvc.

Any help please, I am using mvc.

推荐答案

我建议您看看

I suggest you take a look at the PayPal Instant Payment Notification guide. This product does exactly that; it's an asynchronous server-to-server notification (with validation) which does just that; it notifies you of transactions, both completed and pending, so that you can action them on your end.

通过更新数据库,XHR和数字下载或向买家发送电子邮件来实现.
最好的部分是它也会在事实发生很长时间后通知您.例如说,如果买方提起退款案件.在这种情况下,您会收到通知,并且可以在您的末端适当地更新买方的交易(例如,撤消对您服务的许可).

Be that by updating your database, XHR and a digital download or sending an email to your buyer.
The best part is that it notifies you long after the fact as well; say, for example, if a buyer files a chargeback case. You'll got notified in that case and will be able to appropriately update the buyer's transaction on your end (revoke permissions to your service, for example).

我们在我们的GitHub存储库上提供了IPN示例代码示例.

We have sample IPN sample code up on our GitHub repo.

这篇关于立即获取贝宝付款的注册数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆