VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => Authorize.net VM 1 => Topic started by: buildakicker on October 20, 2008, 19:36:44 PM

Title: Module called authorized.net translator
Post by: buildakicker on October 20, 2008, 19:36:44 PM
Hello,

I have been working on a website that is wanting to use credit cards online now. They have a service called SecurePay that they use for phone orders... SecurePay said they need a Module Called Authorized.Net Translator. Can I just check the Authorize.net radio button in the VM setup area and put in their info and it will be  go? Or do I need to do somethin else?

Thanks for the help.
Title: Re: Module called authorized.net translator
Post by: buildakicker on October 31, 2008, 05:04:43 AM
I figured it out and here is how to modify ps_authorize to work with securepay in the US. All I did is replace line 383 from this:

https://$host:443/gateway/transact.dll

to this:

https://www.securepay.com/AuthSpayAdapter/process.aspx

However, now I am getting an error that says not added to database after the CC purchase is made. Any clues?
Title: Re: Module called authorized.net translator
Post by: lseibert on July 20, 2009, 16:12:06 PM
This did not work for my customer.  They have a securepay account but we get this error when trying to check out:
Error: 2--2-E---This transaction has been declined.
Error: Failure in Processing the Payment (ps_authorize)

Any ideas?  Thanks.
Title: Re: Module called authorized.net translator
Post by: sylviarose on November 18, 2009, 00:29:35 AM
I got these instructions right from SeceurePay.
---------------------------

First, in the file ps_authorize.php replace lines 304-310:



                        if(AN_TEST_REQUEST=='TRUE') {

                                    $host = 'test.authorize.net';

                        } else  {

                                    $host = 'secure.authorize.net';

                        }

                        $port = 443;

                        $path = "/gateway/transact.dll";



With this:



                        if(AN_TEST_REQUEST=='TRUE') {

                                    $host = '';

                        } else  {

                                    $host = 'www.securepay.com';

                        }

                        $port = 443;

                        $path = "/AuthSpayAdapter/process.aspx";





Next, in the same file replace lines 549-555:



                        if(AN_TEST_REQUEST=='TRUE') {

                                    $host = 'test.authorize.net';

                        } else  {

                                    $host = 'secure.authorize.net';

                        }

                        $port = 443;

                        $path = "/gateway/transact.dll";

With this:



                        if(AN_TEST_REQUEST=='TRUE') {

                                    $host = '';

                        } else  {

                                    $host = 'www.securepay.com';

                        }

                        $port = 443;

                        $path = "/AuthSpayAdapter/process.aspx";