close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

order already exists in database

Thread began 2/16/2010 2:00 pm by sam308940 | Last modified 2/17/2010 1:31 pm by sam308940 | 1637 views | 4 replies |

sam308940

order already exists in database

Im am doing testing on a site and Im getting this error.
This is after I have submitted multiple tests.

PROBLEM
I could understand getting this error if a transaction was actually logged - however I am getting this when no transaction has been logged on the gateway (not declined and not approved). Nor has anything been saved on my end in the database.

ADDITIONALLY
I have had this error reported on a different website with the same error report, but the gateway is auth.net. In the same conditions - the user got an error and went back and resubmitted thier info. However no transaction was logged and neither was anything saved to the database.

Any Ideas on how to get around this?

Sign in to reply to this post

Jason ByrnesWebAssist

look in the authorize.net code on the confirm page to see what is being used for the x_invoice_num value, we usually use the session ID:


$AuthNet_required[0][$nextIndex] = "x_invoice_num";
$AuthNet_required[1][$nextIndex] = "".session_id() ."";


If you are using the session ID and having this problem, you should check that the host is properly set up to assign a unique ID for each browsing session.

the transaction will not be stored in the database unless it was successful.

Sign in to reply to this post

sam308940

for both websites i checked, both are on different hosting servers and both have the order id that is sent to the gateway set as the session id.

so both sites i have this issue with are on 2 different hosts and use 2 different gateways.
but both have the sessionid set as the order id sent to the gateway.

i know that others are having trouble with this (ie others using other carts etc).in my quest to solve this i found many message boards on this topic.

The issue is that somehow even if the transaction is not approved the order id that is sent to the gateway is logged. so when trying to run it again (ie user goes back to modify info) its using the same session id still. so thats when the error occurs that it says the order is already exists. it exists in the gateways database.

has ANYONE else found this issue? ways around it?

sam

Sign in to reply to this post

Jason ByrnesWebAssist

try adding the following code on the failure page:
<?php session_regenerate_id(); ?>

this should create a new session id to use if the transaction fails.

Sign in to reply to this post

sam308940

found something that might help future users on this topic

inside linkpoint there is fraud controls that you can set the timing to.
so you can control how often a cc can be reused, etc.
by decreasing these numbers i was able to continue my site testing without getting the notice of the "order exists in database"

Sign in to reply to this post

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...