Support Forums

Anyone sucessful with Version 4.0 Authorizenet credit cards processing?

This is a discussion on Anyone sucessful with Version 4.0 Authorizenet credit cards processing? within the Technical Support forums, part of the Technical Support Forums category; Please ignore the title of this thread.. I tried changing it but doesn't seem like its working. ------------- I'm trying ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 03-03-2008, 09:20 PM   #1
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 296
Rep Power: 25
cwp is a jewel in the rough
Default Custom payment gateway error

Please ignore the title of this thread.. I tried changing it but doesn't seem like its working.
-------------

I'm trying to make a custom gateway for the payment processor "QuantumGateway". I used the authorizenet gateway files to build mine.

I'm having some problems with this -

Code:
<form name="final" id="final" action="thanks.php?gateway=authorizenetaim" method="post" onSubmit="return checkform(this)">
If I change the "authorizenetaim" to the name of my gateway, the payment will not process. It acts like it completes but doesn't.


If I keep the "authorizenetaim" the payment processes and completes and I get this error:


Warning: Missing argument 6 for logtransaction() in /public_html/new/includes/classes/kernel/Orders.php on line 693


The first line is line 693. The 6th argument is $amount. If I take this variable out of this function it works without showing the above error.

Code:
	function logTransaction($gatewayid, $orderid, $status, $userid, $transactionid, $amount, $notes = '')
	{
		global $db;
		$sSQL="INSERT INTO ".PREFIX."transactions SET " .
				"tGatewayID=".$gatewayid.", " .
				"tStatus='".$status."', " .
				"tOwnerID='".$userid."', " .
				"tOrderID=".$orderid.", " .
				"tTransactionID='".$transactionid."', " .
				"tDate=NOW(), " .
				"tTotal='".$amount."', " .
				"tNotes='".$notes."'";
		$db->query($sSQL);
	}

See the attached photo to see what the transaction menu looks like for the orders processed.


My question is, how can I make my gateway work with the thanks.php page? I understand custom gateways are not supported by the 68 classifieds team, but if anyone could look it over and just see what the problem is.. I've been working on this all night :|
Attached Images
File Type: png transactions.png (18.0 KB, 1 views)
__________________
Version 4.0.3 Developer

Last edited by cwp; 03-04-2008 at 06:42 AM. Reason: error
cwp is offline  
Old 03-04-2008, 11:51 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Is it possible to post the contents of your sr.php file?
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 03-04-2008, 01:35 PM   #3
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

I believe I see the issue.

Change the logTransaction line to this:
Code:
$Orders->logTransaction($params['gatewayid'], $params['orderid'], 'Completed', $userid, $authnumber, $params['oTotal']);
It was missing the $userid.

This will also be fixed in the next release.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 03-04-2008, 04:21 PM   #4
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 296
Rep Power: 25
cwp is a jewel in the rough
Default

I attached sr.php.txt and sent you a message.
Attached Files
File Type: txt sr.php.txt (5.6 KB, 3 views)
__________________
Version 4.0.3 Developer
cwp is offline  

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0