Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

People paying twice in the checkout


Grant7

Recommended Posts

Posted

Hi,

 

I have a problem in my oscommerce cart which uses the eway payment gateway to process credit cards.

 

This problem only occurs when the eway payment method is selected.

 

Sometimes I think the payment goes through slower than other times (takes longer to process), so people click the "confirm order" button twice, thinking they may need to try the connection again.

 

When they do this, their credit card is charged twice and we have to refund one of the payments, which gets very annoying - this probably happens nearly once every day and we get roughly between 10 and 20 orders a day with most paying by credit card.

 

If anyone has experienced similar issues or even if you haven't but you have a solution, please let me know.

 

I had two possible solutions:

 

1. Place some text above the confirm order button and tell customers not to click the confirm order button twice and that it may take up to 60 seconds to process the order.

 

2. If there was a contribution or something to display an ajax like temporary pseudo popup window telling the customer that their order was being processed, and then when complete they would see the checkout_success.php page and the popup window would disappear. This would discourage them from clicking "confirm order" twice if they saw that their order was "processing".

 

Many thanks.

Posted

Ok great thanks, sorry but I'm a bit of an amateur adding javascript to php, how would I add something like onclick= "do_totals1()" to the confirm order button:

 

<?php

if (is_array($payment_modules->modules)) {

echo $payment_modules->process_button();

}

 

echo tep_image_submit ('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . "\n";

?>

 

thanks.

Posted
<?php
if (is_array($payment_modules->modules)) {
 echo $payment_modules->process_button();
}

echo tep_image_submit ('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER, 'onclick= "do_totals1()"') . "\n";
?>

Always back up before making changes.

Posted

<?php
if (is_array($payment_modules->modules)) {
 echo $payment_modules->process_button();
}

echo tep_image_submit ('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER, 'onclick= "do_totals1()"') . "\n";
?>

 

Thanks, worked a treat :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...