Clicking more than once may charge your credit card multiple times…

I bought some tickets from the Royal Liverpool Philharmonic Hall (that sounds like I’m all very cultured but, sorry to disappoint, they were for a pirate fancy dress party). At the checkout I was confronted with this:

buy_click_once

Jeysus… Come on. It’s the 21st century for heaven’s sake. Surely this problem has been dealt with before?

Well, yes it has. The common solution is to disable the ‘Buy’ button using JavaScript in its “onclick” handler (or change its text or some such thing). This is probably what I would have done but it has the problem that it falls over if JavaScript isn’t enabled and will incur the wrath of Uncle Dave… You could argue that those without JavaScript enabled probably number less than 10% and then only a tiny fraction of those are going to be trigger happy so it solves the problem more or less. To complement that you could provide a big red warning as above and hide it with JavaScript as the page loads. This would mean it is displayed to those without JavaScript and would be hidden from those with it. This probably fits in with the Unobtrusive JavaScript mantra.

A more meaty non JavaScript solution is to put some sort of form id into a hidden field in the form on the server side when it is first rendered and then store it when the order is first received. Then only process orders that have not already been received. This works but the problem that arises is that after the second, erroneous, click you have to deal with where the user is redirected to so you need to be able to retrieve the order using the hidden value to allow the next page, confirmation or whatever, to be properly served (I can’t use served in this context anymore without thinking of South Park). This requires a bit of thought as the order may not have been processed when the second click is ‘received’ so you may not yet have an order to work against.

So, has anyone else got any bright ideas or should those with an itchy trigger finger be left to suffer the duplicate order fate of their own making?

About these ads

8 Responses to “Clicking more than once may charge your credit card multiple times…”


  1. 1 Samuel August 2, 2007 at 2:13 pm

    I was registering a domain & hosting bundle from Compila and the same thing happened (Well, the confirmation page hadn’t reloaded within an hour) so I hit the back button.

    I’m not sure we (at work) got our money back for that domain name we own for the second time simultaneously.

  2. 2 click here April 1, 2013 at 4:06 am

    What’s up, I would like to subscribe for this website to take most recent updates, thus where can i do it please assist.

  3. 3 Services IT in toronto April 20, 2013 at 11:52 pm

    This is my first time go to see at here and i am actually pleassant to
    read everthing at one place.

  4. 4 celebs without makeup May 14, 2013 at 1:40 am

    Excellent way of telling, and fastidious post to take information about my presentation
    focus, which i am going to convey in academy.

  5. 5 займы в ростове на дону July 11, 2013 at 4:10 pm

    Wow, fantastic blog layout! How long have you been blogging for?

    you made blogging look easy. The overall look of your website is excellent, let alone the content!

  6. 6 Maurice July 30, 2013 at 5:07 am

    Paragraph writing is also a excitement, if you be familiar with after that you can
    write if not it is complicated to write.

  7. 7 jisiriseje.site11.com August 14, 2013 at 12:09 am

    Today, I went to the beach with my kids. I found a sea shell and gave it to my 4 year
    old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed.
    There was a hermit crab inside and it pinched her ear. She never wants to go back!
    LoL I know this is entirely off topic but I had to tell someone!

  8. 8 Benson Credit Blog December 25, 2013 at 9:03 am

    I think this іs one of the most important infо for me.And i am glad reading your article.
    But wanna remark on few general things, The website style іs ideal,
    the articles is really great : D. Good job, cheers


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s





Follow

Get every new post delivered to your Inbox.

Join 37 other followers

%d bloggers like this: