Forums / Built-in Shipping and Payment Modules / Linkpoint error: SGS-002301: Charge total must be the sum of subtotal...

Linkpoint error: SGS-002301: Charge total must be the sum of subtotal...

Locked

Started by largomike1 on 16 Dec 2009, 12:46 AM · Views: 2,345

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
16 Dec 2009, 12:46 AM
#1
largomike1 avatar

largomike1

New Zenner

Join Date:
Apr 2009
Posts:
25
Plugin Contributions:
0

Linkpoint error: SGS-002301: Charge total must be the sum of subtotal...

First my environment:

  • zencart version 1.38a patch 1, database patch level 1.3.8
  • php version 4.4.9
  • mysql 5.0.81
  • http server apache
  • server os Linux 2.6.28.8
    No upgrades recently

Started using Linkpoint on 12/8/09. Processed 10 orders succussfully. Then started noticing people were getting denied on 12/12. I set linkpoint debug option on (log and email). Now my customers are getting denied sporadically. I'm getting emails with these errors starting on 12/14/09. I've copied the full text from the error email, with personal data x'd out.

I have applied the patch suggested in the forum posting: http://www.zen-cart.com/forum/showthread.php?p=563490#post563490

The patch actually worked for an error I was working on last night. Now I have another error with the text below.

Please respond with any help regarding these two questions:
1- I am concerned this gateway interface is buggy and am wondering if I should switch to Authorize.net. Is that gateway interface more stable?

2- Is there a later API patch then the one provided in the post above?

You may notice an array element in the error text below like this: [description] => Adjustments:. This is a custom OT Order module I added. I do not believe this is causing the error. The Adjustments section is always zero. We use this later, after the purchase is completed. Any help is appreciated.

Text from the email:

Response Code:

Sending to Gateway:
result = LIVE
oid = 1083-fAM36x
ip = xx.xx.xx.xx
ponumber =
subtotal = 29.9
tax = 0
shipping = 0
chargetotal = 14.95
cardnumber = ******
cardexpmonth = 08
cardexpyear = 10
cvmindicator = provided
cvmvalue = ******
userid = 72
customerid = 72
name = Kristi xxx
company =
address1 = xxxx
address2 =
city = xxxx
state = Minnesota
country = US
phone = xxx-xxx-xxx
email = [email protected]
addrnum = xxx
zip = xxx
sname = xxxx
saddress1 = xxx
saddress2 =
scity = Otsego
sstate = Minnesota
szip = 55362
scountry = US
comments = Website Order
items = Array
(
[1] => Array
(
[id] => 25
[description] => Fleur De Lis Purse Hanger
[quantity] => 1
[price] => 14.95
)

[2] => Array
(
[id] => Surcharge
[description] => Total Paid:
[quantity] => 1
[price] => 0.00
)

[3] => Array
(
[id] => Surcharge
[description] => Adjustments:
[quantity] => 1
[price] => 0.00
)

[4] => Array
(
[id] => Surcharge
[description] => Total Due:
[quantity] => 1
[price] => 14.95
)

)

ordertype = SALE
host = secure.linkpt.net
port = 1129
keyfile =
/homepages/26/d300711384/htdocs/pursebling/includes/modules/payment/linkpoin
t_api/xxx.pem
configfile = xxx
transactionorigin = ECI
terminaltype = UNSPECIFIED

Result:
(
[r_csp] =>
[r_time] => Tue Dec 15 18:30:24 2009
[r_ref] =>
[r_error] => SGS-002301: Charge total must be the sum of subtotal, tax,
value added tax, and shipping.
[r_ordernum] => 1083-fAM36x
[r_message] =>
[r_code] =>
[r_tdate] =>
[r_score] =>
[r_authresponse] =>
[r_approved] =>
[r_avs] =>
)

HELP!! Thanks.

16 Dec 2009, 2:26 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Linkpoint error: SGS-002301: Charge total must be the sum of subtotal...

Looks like you've got a lot more than the default order-total modules enabled.
What happens if you turn off everything except ot_subtotal, ot_tax, ot_shipping, and ot_total ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Dec 2009, 2:50 AM
#3
largomike1 avatar

largomike1

New Zenner

Join Date:
Apr 2009
Posts:
25
Plugin Contributions:
0

Re: Linkpoint error: SGS-002301: Charge total must be the sum of subtotal...

Never mind! I figured out the problem. A year ago, I had added some new OT Modules to help with our order processing. With the new patch for the Linkpoint api, one of the modules was getting included in the subtotal calculation, throwing it off. I modified the linkpoint api to ignore my OT modules and it worked.