Grant7 Posted October 12, 2009 Posted October 12, 2009 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.
BryceJr Posted October 12, 2009 Posted October 12, 2009 The code is freely available. It's virtually copy and paste with very minor tweaking for your needs. ->Here is a good example. There are more samples ->here
Grant7 Posted October 14, 2009 Author Posted October 14, 2009 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.
♥ecartz Posted October 14, 2009 Posted October 14, 2009 <?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.
Grant7 Posted October 14, 2009 Author Posted October 14, 2009 <?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 :)
maclean_cherry Posted October 20, 2009 Posted October 20, 2009 Hi Grant, Good to see that you got it working. We have a few handy scripts available on our website as well, including a 'Stop Double Clicks' script. Check them out here http://www.eway.com.au/Developer/Downloads/SampleCode/HelpfulScripts.aspx Kind Regards, Maclean Head of International Partnerships eWAY eway.com.au eway.co.uk eway.co.nz
Recommended Posts
Archived
This topic is now archived and is closed to further replies.