C# 如何将 PayPal 与 ASP.NET 集成?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/638114/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 11:18:27  来源:igfitidea点击:

How can i Integrate PayPal with ASP.NET?

c#asp.netpaypal

提问by

How can i integrate PayPal with ASP.NET, do you have any sites that can get me started or links to any tutorials?

我如何将 PayPal 与 ASP.NET 集成,您是否有任何可以帮助我入门的网站或任何教程的链接?

回答by Adrian Grigore

You'll have to use Paypal IPNfor that. My site runs with Perl, but the way it basically works is as follows:

为此,您必须使用Paypal IPN。我的网站使用 Perl 运行,但它的基本工作方式如下:

  1. Customer fills out an order form at my site with their name, address, email.
  2. Customer is being redirected to Paypal
  3. Upon successful payment via Paypal, Paypal calls my IPN-compliant script
  4. My script sends me an e-mail notifying me about the completed order
  1. 客户在我的网站上填写订单,填写他们的姓名、地址和电子邮件。
  2. 客户被重定向到 Paypal
  3. 通过 Paypal 成功付款后,Paypal 调用我的 IPN 兼容脚本
  4. 我的脚本向我发送了一封电子邮件,通知我已完成的订单

If the customer does not pay within 30 minutes or so, my database also sends him a reminder with a Paypal payment link for the respective order.

如果客户没有在 30 分钟左右的时间内付款,我的数据库还会向他发送带有相应订单的 Paypal 付款链接的提醒。

回答by suhair

Read paypal integration in asp.net from Rick Strahl

阅读Rick Strahl在 asp.net 中的 paypal 集成

Update: There is PayPal Helperfor web matrix that could be easily integrated to asp.net mvc or asp.net web forms.

更新:有用于 web 矩阵的PayPal Helper,可以轻松集成到 asp.net mvc 或 asp.net web 表单。

回答by Rebecca

Download the ASP.NET E-Commerce Start Kit, which is now "DashCommerce". It has PayPal implemented. http://dashcommerce.org/

下载 ASP.NET 电子商务入门工具包,它现在是“DashCommerce”。它已经实施了PayPal。http://dashcommerce.org/

回答by brad oyler

You can give this Paypal NVP API example in C# (asp.net) a try: http://brad.w3portals.com/2008/02/paypal-nvp-api-example-in-c-aspnet.html

您可以在 C# (asp.net) 中试试这个 Paypal NVP API 示例:http: //brad.w3portals.com/2008/02/paypal-nvp-api-example-in-c-aspnet.html

Tries to give a simple example to get you up and running quick. The paypal SDK example are not that great. Cheers.

试图举一个简单的例子来让你快速上手。paypal SDK 示例并不是那么好。干杯。

回答by alders

Michael987 put together posts from different forums to come up with a solution that worked well for him.

Michael987 将来自不同论坛的帖子放在一起,想出了一个对他很有效的解决方案

NathanRidley integrated the codes from the link above and released an open source library on Github

NathanRidley 整合了上面链接中的代码,并在 Github 上发布了一个开源库