[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Duplicate CyberCash transactions IDs?
****** message to minivend-users from "kyle@invisio.com" <kyle@invisio.com> ******
I've encountered the same problem occasionally and have found it
to always be the user doing a "double" submit. Either they get impatient
and click again, or they "stop" and then submit latter, or their
internet connection has been dropped right after the submit
and they log back in and do it again.
I've dramatically lowered the occurrence of this by installing a javascript
to prevent a second submit and also adding text to explain that if,
after ONE click, the user gets anything other than an receipt page
or error page that they should wait a few minutes and check their email
box for a copy of a receipt.
Here is the basic javascript code to prevent a double click:
<SCRIPT LANGUAGE="JavaScript" >
<!--
var submitted = false;
function submitCheck(){
if (submitted) {
alert("WARNING TEXT HERE");
return false;
}
else {
submitted = true;
return true;
}
}
// -->
</SCRIPT>
and place a call to submitCheck in the form tag like:
<FORM ACTION="[process-target secure=1]"
METHOD="POST" onSubmit="return submitCheck()">
Hope this helps,
Kyle (KC)
At 07:02 PM 3/13/00 +0200, you wrote:
>****** message to minivend-users from "Reuven M. Lerner"
><reuven@lerner.co.il> ******
>
>We're having intermittent problems with CyberCash, and recently
>decided to write an auto-mail system, which e-mails us details about
>the failure when they occur.
>
>One particularly puzzling error seems to have occurred several days
>ago, when a user tried to make a purchase via credit card. It seems
>that CyberCash received a transaction ID, which went through (and was
>duly reported in both error.log and tracking.asc).
>
>However, MiniVend didn't stop there. From everything we can tell
>(including the CyberCash Level 2 support people), MiniVend then sent
>*another* transaction, with the same transaction ID. CyberCash
>rejected this second request, saying (correctly) that the ID had
>already been used.
>
>The user got an error page (which generated the auto-mail to us), got
>frustrated, and made an identical purchase.
>
>While I wish that I could blame this on CyberCash, I'm increasingly of
>the opinion that MiniVend sent a duplicate ID. Has anyone encountered
>this before? Is it possible that the user might have done something
>(e.g., press "stop") at the wrong time, thus causing such a problem?
>
>Thanks for any information people can provide...
>
>Reuven
>-
>To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list