Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * - - 1 votes

Authorize.net Simple Integration Method (SIM) Support


54 replies to this topic

#21 netstep

  • Community Member
  • 113 posts
  • Real Name:Sam NetStep
  • Location:Washington State, USA

Posted 04 September 2007, 04:41

BUG SWATTING: I poked at the module on a fresh osC2.2 and have yet to track down a small bug.
I'll work on it this week and post the update. If someone has a moment to glance at this code you may be able to find the bug.

BUG 1:
See "" above the module list.

BUG 2: During install/uninstall
Warning: Cannot modify header information - headers already sent by (output started at /home/supernet/domains/netstepcommerce.com/public_html/2.2/includes/modules/payment/authorizenet_sim.php:1) in /home/supernet/domains/netstepcommerce.com/public_html/2.2/admin/includes/functions/general.php on line 22

DEMO
Catalog Modules Demo (Will not connect to Authorize.net)
Admin Modules Demo

Module file Text Visible
Current Module File
Current Module Language File

Edited by netstep, 04 September 2007, 04:42.

Sam M. - Seattle

#22 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 04 September 2007, 17:47

Bug two is because of white space at the top of authorizenet_sim.php or at the bottom of general.php ether way you have white space that needs to be removed ether at the top of bottom of those files.


For bug 1 check your modules.php file for the ""
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#23 netstep

  • Community Member
  • 113 posts
  • Real Name:Sam NetStep
  • Location:Washington State, USA

Posted 04 September 2007, 20:37

View PostSilverado05, on Sep 4 2007, 05:47 PM, said:

Bug two is because of white space at the top of authorizenet_sim.php or at the bottom of general.php ether way you have white space that needs to be removed ether at the top of bottom of those files.
Thank you for your help.
I was guessing there were some stray characters or spaces....but there's nothing at the top or bottom of either the module or language file.
Sam M. - Seattle

#24 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 05 September 2007, 02:31

View Postnetstep, on Sep 4 2007, 03:37 PM, said:

Thank you for your help.
I was guessing there were some stray characters or spaces....but there's nothing at the top or bottom of either the module or language file.

It's whitespace you won't see it you need to place your mouse to the end of the file and delete the extra space all the way to the ?>

If you still don't see what I am talking about then post the file and I will remove it.
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#25 netstep

  • Community Member
  • 113 posts
  • Real Name:Sam NetStep
  • Location:Washington State, USA

Posted 05 September 2007, 17:41

View PostSilverado05, on Sep 5 2007, 02:31 AM, said:

It's whitespace you won't see it you need to place your mouse to the end of the file and delete the extra space all the way to the ?>
If you still don't see what I am talking about then post the file and I will remove it.
There is no space before or after the PHP tags....thus my confusion.
I truly appreciate any trouble shooting you can offer.
The php.txt files are linked in this post so you can view the code.
Sam M. - Seattle

#26 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 05 September 2007, 18:19

View Postnetstep, on Sep 5 2007, 12:41 PM, said:

There is no space before or after the PHP tags....thus my confusion.
I truly appreciate any trouble shooting you can offer.
The php.txt files are linked in this post so you can view the code.

No space uh? Well in those two files you have posted above their is space before the opening <? and after the closing ?> that shouldn't be there.

post your general.php

Edited by Silverado05, 05 September 2007, 18:21.

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#27 netstep

  • Community Member
  • 113 posts
  • Real Name:Sam NetStep
  • Location:Washington State, USA

Posted 05 September 2007, 20:15

View PostSilverado05, on Sep 5 2007, 06:19 PM, said:

No space uh? Well in those two files you have posted above their is space before the opening <? and after the closing ?> that shouldn't be there.

post your general.php
I'm not trying to be a pain, and I really appreciate your help.
Looking at the text file > Select all > not seeing any spaces above or below php tag.
...if it really does turn out to be something this basic....I'll go back to flippin' burgers. :blink:

If you tweak the file and email, I'll be happy to install and see if fix works.
Top line of module txt file has my email address: //CUSTOMIZED BY: oscommerce AT

My general.php is new osCms2.2.
Sam M. - Seattle

#28 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 06 September 2007, 00:20

View Postnetstep, on Sep 3 2007, 11:41 PM, said:

DEMO
Catalog Modules Demo (Will not connect to Authorize.net)
Admin Modules Demo

Module file Text Visible
Current Module File
Current Module Language File


If you click on the links of the files above you will notice like it states in the error line 1. Well line 1 of authorizenet_sim.php is a space which is a space then <? instead of it just starting with <? and the bottom is the same way. If that it not it post your general.php file here so I can look at it.

here is another post that talks about this same error. When you see this error it is because of whitespace like I have told you. If you keep getting this error then you are missing it and not getting it completely.

http://forums.oscommerce.com/index.php?showtopic=156547
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#29 netstep

  • Community Member
  • 113 posts
  • Real Name:Sam NetStep
  • Location:Washington State, USA

Posted 06 September 2007, 05:53

View PostSilverado05, on Sep 6 2007, 12:20 AM, said:

If you click on the links of the files above you will notice like it states in the error line 1. Well line 1 of authorizenet_sim.php is a space which is a space then <? instead of it just starting with <? and the bottom is the same way. If that it not it post your general.php file here so I can look at it.
You've been very helpful and exceedingly patient...thank you.

After looking at the files many times in my editor, I opened them in my control panel file text editor and saw the mystery characters at the beginning of both files "".
Not sure why my editor wouldn't display them....I use it for dozens of php files every week, and I've never seen this.

Now installs like a dream....which I could erase all the posts regarding this to remove the clutter.
My apologies.

PS: I guess I better get my burger flipper warmed up. ug.

Edited by netstep, 06 September 2007, 06:02.

Sam M. - Seattle

#30 netstep

  • Community Member
  • 113 posts
  • Real Name:Sam NetStep
  • Location:Washington State, USA

Posted 06 September 2007, 06:01

Bug fix release posted.
http://www.oscommerce.com/community/contributions,5370
Sam M. - Seattle

#31 alivetekdragon

  • Community Member
  • 7 posts
  • Real Name:Nathaniel
  • Gender:Male
  • Location:Largo, Florida

Posted 24 September 2007, 23:07

Today I continued tests with Authorize.net. We have a test account at Authorize.net. I was able to get simple tests (outside of osCommerce) to work on both our live web server and our development server (local). I was very happy to find out that I could get to the payment form at Authorize.net from our development server, since I wasn't sure if it was needing to come from a site that could be found online.

Unfortunately I'm still looking for why I'm getting an error when I use osCommerce. I did install the latest available SIM update for osC. (http://www.oscommerce.com/community/contributions,5370)

This is the error when trying to confirm a purchase (using the test account) I'm getting from osCommerce on our local server:

The following errors have occurred.
(14) The referrer, relay response or receipt link URL is invalid.

Any ideas here? By the way, I'm connecting to https://test.authorize.net/gateway/transact.dll because we have a test account and have the php code for this mod updated to use that URL.

#32 netstep

  • Community Member
  • 113 posts
  • Real Name:Sam NetStep
  • Location:Washington State, USA

Posted 25 September 2007, 01:33

Quote

The following errors have occurred.
(14) The referrer, relay response or receipt link URL is invalid.

Any ideas here? By the way, I'm connecting to https://test.authorize.net/gateway/transact.dll because we have a test account and have the php code for this mod updated to use that URL.

Do you have the referrer URLs set up in Anet?
http://www.yoursite.com/checkout_process.php
Sam M. - Seattle

#33 alivetekdragon

  • Community Member
  • 7 posts
  • Real Name:Nathaniel
  • Gender:Male
  • Location:Largo, Florida

Posted 25 September 2007, 12:45

Yes, I do have the URL to our development server entered in as Default Receipt URL and Default Relay Response URL on the Response/Receipt URLs page. I also see that URL in the Default Relay Response URL on the Relay Response page, in case that makes a difference.

#34 odinbear

  • Community Member
  • 4 posts
  • Real Name:Walter

Posted 15 October 2007, 21:08

View Postalivetekdragon, on Sep 24 2007, 11:07 PM, said:

Any ideas here? By the way, I'm connecting to https://test.authorize.net/gateway/transact.dll because we have a test account and have the php code for this mod updated to use that URL.


After several hours this morning, I was told on the phone from Authorize.net Support that a Live Account in TEST MODE can't connect to :
https://test.authorize.net/gateway/transact.dll

that it MUST be:
https://certification.authorize.net/gateway/transact.dll


so I changed it in the default authorize.net module and it worked (bounced back to Order successfully processed.)

I assume it went through as just b4 that I was getting this error:
The following errors have occurred.
(13) The merchant login ID or password is invalid or the account is inactive.

Now to try a real transaction.

#35 Boschett

  • Community Member
  • 40 posts
  • Real Name:Keith

Posted 06 November 2007, 17:05

netstep/Sam,

Thanks for posting this contribution. I was wondering if you know how to change something. When the credit card is declined the error message comes up just under the breadcrumb bar in the same background color as the bar itself. Do you know if and where I can change the background color of the error message? Is it in the stylesheet?

Thanks,
Keith

#36 netstep

  • Community Member
  • 113 posts
  • Real Name:Sam NetStep
  • Location:Washington State, USA

Posted 06 November 2007, 17:42

View PostBoschett, on Nov 6 2007, 05:05 PM, said:

netstep/Sam,

Thanks for posting this contribution. I was wondering if you know how to change something. When the credit card is declined the error message comes up just under the breadcrumb bar in the same background color as the bar itself. Do you know if and where I can change the background color of the error message? Is it in the stylesheet?

Thanks,
Keith
You should put it in the stylesheet and name it something like "DIV.error_anet", but I put mine inline.

chechout_payment.php
Look for
<table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			<table border="0" width="100%" cellspacing="0" cellpadding="0">
				<tr>
					<td class="pageHeading"><?php echo PAYMENT_HEADING_TITLE; ?></td>
				</tr>
			</table>
		</td>
	</tr>
Below it add
<?php //+5370
$error_message = (isset($HTTP_GET_VARS['error_message']) ? $HTTP_GET_VARS['error_message'] : '');
if (tep_not_null($error_message)) {
	echo '<tr>
				<td>
					<div style="font-size:12px; color:#cc0000; font-weight:bold; width:600; border:3px solid #cc0000; padding:5px; background:#ffffcc;">ERROR: ' . $error_message . '</div>
				</td>
			</tr>';				
} //-5370
?>

Find where the error message is currently located near the breadcrumbs and comment that out.
Sam M. - Seattle

#37 squarede

  • Community Member
  • 22 posts
  • Real Name:Ray Lewis
  • Location:Walden, Vermont

Posted 07 November 2007, 11:07

Hello, Looking for any help that I can get.
I have installed the authorize.net SIM module on our website http://squaredealfarm.org. Unfortunately, I can not get it to work and find the folks at authorize.net clueless to help.
At the point when a customer leaves our website to go to the secure server, an error message is shown reading, "The following errors have occurred.
(99) This transaction cannot be accepted".
I have been working my way through this install, and cannot get past this point. This is the third different error message that I have received so I must be making some progress.
I apologize for my ignorance -I 'm a stubborn farmer trying to figure this out for myself.
Ray

#38 netstep

  • Community Member
  • 113 posts
  • Real Name:Sam NetStep
  • Location:Washington State, USA

Posted 08 November 2007, 07:45

View Postsquarede, on Nov 7 2007, 11:07 AM, said:

Hello, Looking for any help that I can get.
I have installed the authorize.net SIM module on our website http://squaredealfarm.org. Unfortunately, I can not get it to work and find the folks at authorize.net clueless to help.
At the point when a customer leaves our website to go to the secure server, an error message is shown reading, "The following errors have occurred.
(99) This transaction cannot be accepted".
I have been working my way through this install, and cannot get past this point. This is the third different error message that I have received so I must be making some progress.
I apologize for my ignorance -I 'm a stubborn farmer trying to figure this out for myself.
Ray
Sounds like the info your passing to Anet isn't verifying in the Anet system.
Authorize.net > Login > Account > Settings > Response/Receipt URLs
http://YOURSITE/checkout_process.php [Default Receipt URL]
In your site this may look like:
http://www.squaredealfarm.org/osCommerce/c...out_process.php
You'll also need to enter the transaction key from Anet into your osC payment module.

...looks like you may be in over your head a bit at http://www.squaredealfarm.org/osCommerce/c...stall/index.php
Geeks like to make it sound like installing osC is a piece a cake...and it is for geeks....but if you're a beginner it can be trying to take a drink from a fire hose. Believe me when I say I can feel your pain. I was a beginner about 7 years ago, and many of the super geeks in osC community help me realize I've still got a great deal to learn. If you're about to go crazy, you may want to considering hiring a member of this talented community to help you get your site up an running.

OFF TOPIC...in addition to your osC install you need some help getting you images optimized, etc.
Example: http://squaredealfarm.org/images/threestacktwo.JPG is 1.2mb can be optimized to 19k and cut the loading time for that image by 98%.
Get optimized image here - right click - save-as
A free program like http://www.fookes.com/ezthumbs/ can really help get your images resized and speed up your page loading time.

Edited by netstep, 08 November 2007, 07:47.

Sam M. - Seattle

#39 Boschett

  • Community Member
  • 40 posts
  • Real Name:Keith

Posted 11 November 2007, 14:46

View Postnetstep, on Nov 6 2007, 12:42 PM, said:

You should put it in the stylesheet and name it something like "DIV.error_anet", but I put mine inline.

chechout_payment.php
Look for
<table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			<table border="0" width="100%" cellspacing="0" cellpadding="0">
				<tr>
					<td class="pageHeading"><?php echo PAYMENT_HEADING_TITLE; ?></td>
				</tr>
			</table>
		</td>
	</tr>
Below it add
<?php //+5370
$error_message = (isset($HTTP_GET_VARS['error_message']) ? $HTTP_GET_VARS['error_message'] : '');
if (tep_not_null($error_message)) {
	echo '<tr>

Thanks Sam, really appreciated the help.  I will give it a try.
				<td>
					<div style="font-size:12px; color:#cc0000; font-weight:bold; width:600; border:3px solid #cc0000; padding:5px; background:#ffffcc;">ERROR: ' . $error_message . '</div>
				</td>
			</tr>';				
} //-5370
?>

Find where the error message is currently located near the breadcrumbs and comment that out.


#40 Boschett

  • Community Member
  • 40 posts
  • Real Name:Keith

Posted 11 November 2007, 14:47

View Postnetstep, on Nov 6 2007, 12:42 PM, said:

You should put it in the stylesheet and name it something like "DIV.error_anet", but I put mine inline.

chechout_payment.php
Look for
<table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			<table border="0" width="100%" cellspacing="0" cellpadding="0">
				<tr>
					<td class="pageHeading"><?php echo PAYMENT_HEADING_TITLE; ?></td>
				</tr>
			</table>
		</td>
	</tr>
Below it add
<?php //+5370
$error_message = (isset($HTTP_GET_VARS['error_message']) ? $HTTP_GET_VARS['error_message'] : '');
if (tep_not_null($error_message)) {
	echo '<tr>
				<td>
					<div style="font-size:12px; color:#cc0000; font-weight:bold; width:600; border:3px solid #cc0000; padding:5px; background:#ffffcc;">ERROR: ' . $error_message . '</div>
				</td>
			</tr>';				
} //-5370
?>

Find where the error message is currently located near the breadcrumbs and comment that out.


Thanks Sam, really appreciated the help. I will give it a try.