get registration data on paypal pay now [closed]

此生再无相见时 提交于 2019-12-26 09:23:53

问题


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.

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.

Any help please, I am using mvc.


回答1:


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.

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).

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



来源:https://stackoverflow.com/questions/18032392/get-registration-data-on-paypal-pay-now

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!