简体   繁体   English

将PayPal与控制台应用程序集成

[英]Integrating PayPal with console application

I am programming a server, which needs to receive payment information from paypal (PayPal), in C#, but it isn't supposed to be via website (I've found many "walkthroughs" for that), it is supposed to receive the payment information via console, or any other non-graphical way. 我正在编程一个服务器,该服务器需要使用C#从Paypal(PayPal)接收付款信息,但是不应该通过网站(我已经找到了很多“演练”),应该可以接收通过控制台或其他任何非图形方式的付款信息。 Is it possible? 可能吗? If it is, how can I do it? 如果是,该怎么办? Can I do it via sockets? 我可以通过插座吗? I've heard about wcf, but I don't know if it will help me achieve my objectives. 我听说过wcf,但是我不知道它是否可以帮助我实现目标。 If you could please tell me where to look I'll be very grateful. 如果您能告诉我在哪里看,我将不胜感激。 Thanks in advance and sorry for any english mistakes. 在此先感谢您,并感谢您的英语错误。

If you can do it from a C# GUI, you can do it from a console program. 如果可以通过C#GUI进行操作,则可以通过控制台程序进行操作。 You need the PayPal C# SDK . 您需要PayPal C#SDK

You can use WebRequest to make arbitrary http requests. 您可以使用WebRequest发出任意http请求。 Granted, this will be much more difficult than using the aforementioned SDK. 当然,这将比使用上述SDK困难得多。 You will be building requests and parsing responses; 您将建立请求并解析响应; most of which the SDK is doing for you. SDK可以为您完成大部分工作。

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

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