10-29-2010 10:11 AM
I followed the instructions in the "Integration Payments into your site in 15 minutes or less" page for C# MVC and it doesn't work as indicated.
Granted, I'm new to MVC. But if you are going to post an example that requires a certain level of pre-requisite knowledge, please be sure to indicate that at the first in order to save developers like me the time investment in getting to this point.
When I do as instructed and get to step two, I get the following Visual Studio designer error:
Error 1 'System.Web.Mvc.HtmlHelper<dynamic>' does not contain a definition for 'BeginSIMForm' and no extension method 'BeginSIMForm' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<dynamic>' could be found (are you missing a using directive or an assembly reference?)
I have the namespaces imported and the AuthorizeNET.dll referenced properly in my project. Does anyone have any insight here?
11-02-2010 03:02 PM
Currently only .NET 3.5 is supported. If you're using ASP.NET MVC 3, then that's probably why you're getting errors. We're working on updating the documentation so that current support is listed.
Developer Community Manager
11-09-2010 11:46 AM
A. Count me as another person who is having the same problems using .NET 4.0.
B. Saying you will post documentation on the web site at some point is lame. How about posting solution here, now and also posting new docs on the web site.
11-10-2010 11:49 AM
IMO they should just pull this DPM garbage off the site. The documentation is very poor and the sample code and SDK's do not work. I've wasted two days on this CRAP!
11-10-2010 11:59 AM
It was simple, just follow the instructions.. it's not even code it's basically just html and a few sdk calls.
The main take your payment page is basically just create the fingerprint, and post the form you create to Authorize.net... setup a relay page that can be a simple servlet, or web page and put the redirect url...
The schema is a triangle with out a bottom... //\\ to lines each. You post to Authnet, then Authnet sends resposne back to your relay page, then your relay page sends back to authnet with a redirect link which authnet redirects the users browser to. So if you have a secure site you can have a post to a non secure site for the trans. result.
11-10-2010 12:58 PM
The samples don't seem to work with Ruby on Rails 3 either. Looks like Authorize.Net decided to target the lowest common denominator, which in this case is unfortunate.
12-08-2011 03:49 PM - edited 12-08-2011 03:51 PM
I have a detailed answer on stackoverflow for this. It's a simple fix.
I was able to test their suit using the fix I detailed in the link above.
Also, To upgrade this to .net 4 is really easy. Open the project in visual studio 2010, follow the conversion wizard, and then close the project. You'll be able to copy the new files in after that and use the fix detailed in the link above for MVC 3.