简体   繁体   English

我可以通过我的 web 服务向 Authorize.Net 进行刷卡交易吗?

[英]Can I make card present transactions to Authorize.Net via my web service?

I have a (hopefully) basic question on credit card processing, particularly using Authorize.Net.我有一个(希望是)关于信用卡处理的基本问题,尤其是使用 Authorize.Net。 This is my first foray into credit card processing so I have been reading up on it quite a bit.这是我第一次涉足信用卡处理,所以我一直在阅读它。

Let me describe what I am trying to do.让我描述一下我正在尝试做的事情。 I am in the process of building a POS application (WinForms) that receives all it's data from my mvc3 based web service.我正在构建一个 POS 应用程序 (WinForms),它从基于 mvc3 的 web 服务接收所有数据。

I want to include a credit card swipe & receipt printer with this solution.我想在此解决方案中包含一个信用卡刷卡和收据打印机。 My thinking here is that I have the client app collect all relevant info (cc#, expiration date, name, etc) and call up to my webservice.我的想法是让客户端应用程序收集所有相关信息(cc#、到期日期、名称等)并调用我的网络服务。 Once I am in my webservice I would then call out to Authorize.Net, making a card present transaction.一旦我进入我的网络服务,我就会调用 Authorize.Net,进行卡片交易。

Am I missing anything here?我在这里错过了什么吗? Is it ok to make card present transaction from a web server?可以从 web 服务器进行刷卡交易吗? Anything to watch out for?有什么要注意的吗? Should I be looking at AIM (Advanced Integration Method) instead?我应该改用 AIM(高级集成方法)吗?

Windows App <=> Your Web Service <=> Authorize.Net Windows App <=> 您的 Web 服务 <=> Authorize.Net

I'm not sure how you connect: Windows App <=> Your Web Service我不确定您是如何连接的: Windows App <=> 您的 Web 服务

Your Web Service <=> Authorize.Net is not hard.您的 Web 服务 <=> Authorize.Net并不难。 I have done few projects using Authorize.Net Payment.我使用 Authorize.Net Payment 完成了几个项目。

1) You need HTTPS for your web service 1) 您的 web 服务需要 HTTPS

2) Inside your web service, post to "https://secure.authorize.net/gateway/transact.dll" along with parameters. 2) 在您的 web 服务中,连同参数一起发布到“https://secure.authorize.net/gateway/transact.dll”。

3) Once approve, you will get TransactionCode. 3)一旦批准,您将获得TransactionCode。 If fail, you will get error message.如果失败,您将收到错误消息。

Edited:编辑:

WebClient webClient = new WebClient();
NameValueCollection nvc = new NameValueCollection();
nvc.Add("x_login", loginId);
nvc.Add("x_tran_key", transactionKey);      
...                  
Byte[] data = webClient.UploadValues("http://developer.authorize.net/guides/SIM/Appendix_B/Appendix_B_Alphabetized_List_of_API_Fields.htm", nvc);

Guide: Authorize.Net指南: Authorize.Net

To answer the "Is it OK" question, You need to check with Authorize.NET to see what their standards are.要回答“是否可以”的问题,您需要查看 Authorize.NET 以了解他们的标准是什么。

To answer the "Is there anything else to watch out for" question...要回答“还有什么需要注意的”问题...

There is a LOT to watch out for when processing credit cards.处理信用卡时有很多需要注意的地方。 You need to comply with PCI standards, which in turn, means that you have to have a very well-defined development process with security inherent at every step of the process, from requirements gathering to coding, testing, release, etc.您需要遵守PCI标准,这反过来意味着您必须有一个非常明确的开发流程,并且在流程的每个步骤(从需求收集到编码、测试、发布等)都具有固有的安全性。

I strongly recommend that you enlist professional, experienced help if you're really going to do credit card processing at all.如果您真的要进行信用卡处理,我强烈建议您寻求专业的、经验丰富的帮助。 I'm a developer in a retail organization that is subject to PCI compliance.我是遵守 PCI 合规性的零售组织的开发人员。 I've been doing it for years and have been through several audits, so I'm pretty familiar with what it takes JUST to be PCI Compliant (which is a MINIMUM level of security you need to shoot for when dealing with cardholder data.)我已经这样做了很多年,并且已经通过了几次审计,所以我非常熟悉如何才能符合 PCI 标准(这是处理持卡人数据时需要达到的最低安全级别。)

Even with my experience, I'd be uncomfortable writing the credit card processing portion of a POS system without experienced help.即使以我的经验,如果没有经验丰富的帮助,我也会对编写 POS 系统的信用卡处理部分感到不舒服。 It's one of those things where the more you learn, the more you realize you don't know anything.这是你学得越多,你就越意识到自己什么都不知道的事情之一。

If not, then start here: https://www.pcisecuritystandards.org/hardware_software/如果没有,那么从这里开始: https://www.pcisecuritystandards.org/hardware_software/

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

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