简体   繁体   English

如果有人在Asp.NET中使用PayPal或信用卡汇款,如何获得通知?

[英]How to get a notification when someone has sent money using PayPal or Credit Card in Asp.NET?

如果有人在Asp.NET中使用PayPal或信用卡汇款,如何获得通知?

Are you using some sort of payment processor (like paypal)? 您使用的是某种支付处理器(如paypal)吗? If so, they should have a way of notifying you when such an event occurs. 如果是这样,他们应该有办法在发生此类事件时通知您。 This is usually done with them POSTing the data to a URL that you given them in your account setup. 这通常是在他们将数据发布到您在帐户设置中提供的URL时完成的。 At that point it is as easy as having your site respond to POST requests with to that URL With webforms, this means either having an .aspx page, or [recommended] having a generic handler (ashx). 此时,就像让您的站点响应POST请求一样简单。使用webforms,这意味着要么拥有.aspx页面,要么[推荐]拥有通用处理程序(ashx)。 For MVC, you simply need to have an action method on the controller that the POST request is routed to. 对于MVC,您只需要在控制器上有一个POST请求被路由到的操作方法。

HTH HTH

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

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