close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Authorize.net Emulator

Thread began 1/28/2010 10:07 am by ray399589 | Last modified 9/21/2011 7:48 pm by ray399589 | 8148 views | 10 replies

austin322980

Solution: EProcessingNetwork.net Authorize.net Emulation

Mr. Byrnes,

Thank you for your reply but I know it was not a FTP issue. It was a code issue. To get it working with EprocessingNetwork.net's Authorize.net emulator, the AuthNet_PHP.php code has to be changed. First, find the following code. It should be between line 42 and 51.

<code>
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$AuthNet_values);
curl_setopt($ch, CURLOPT_URL,"https://" . ($reqArray[1][4] == 1 ? 'test' : 'secure') . ".authorize.net/gateway/transact.dll");
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$resp = curl_exec ($ch);
curl_close ($ch);
</code>

Change it to the following:

<code>
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$AuthNet_values);
curl_setopt($ch, CURLOPT_URL,"https://www.eProcessingNetwork.Com/cgi-bin/an/order.pl");
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTPS']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$resp = curl_exec ($ch);
</code>

I have a sneaking hunch that if you just change the CURLOPT_URL to point to any other Authorize.net emulator, it should work.

v/r

Clinton Austin
Austin IT Consulting

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...