Hi guys,
I have this job!
and I need help asap
*********************** Most important is every time the page refreshes it costs 50c so can not leave open longer then absolutely necessary as it will cost *******************/
1. Joomla/Virtuemart using eway payment processor.
2. Works fine if correct credit card details are entered.
3. If incorrect expiry date or credit card security code virtuemart send details to eway.
4. eway returns error which Virtuemart display as:
<div class="shop_error"><b>Error</b>: Failure in Processing the Payment: 05,Do Not Honour<br>
<b>Error</b>: Failure in Processing the Payment (ps_eway)<br>
</div>
5. Virtuemart then looks like it continues to try and resend the same data and returns another error causing
a loop. Each time the page refreshes eway registers this as a transaction. Which costs 50c. So if you get
this error page and do not "Stop" the browser it continues to send costing 50c almost every second.
6. Approached this so far by trying to use javascript initialise.js with jquery to say if this page contains
.shop-error and the text "Failure in Processing the Payment" and tried to redirect. But by the time the redirect
was processing the page would refresh so it continues to loop.
7. The other prefered approach would be to catch this error in the correct php file and redirect to:
have an alert('There was an error with the Credit Card details you entered. You have not been charged. Please check your details and proceed again.');
and once ok is clicked redirect to:
checkout URL
(this url will be the correct page for them to try again)
this is the credit card checkout page and the users details will still be entered. They have been told its incorrect with the previous alert.
And they can ammend and try again.
8. Files were this is most likely possible to patch are:
www\administrator\components\com_virtuemart\classes\payment\ps_eway.cfg.php (this is more just what is displayed in the backend but maybe useful)
www\administrator\components\com_virtuemart\classes\payment\ps_eway.php (this is probably the most useful)
also can possibly google Virtuemart files associated as it may be in an overall one. Or could find a file used and just custom code something to redirect as required with error.
9. You can als go in joomla and turn debugging on for virtuemart
components > Virtuemart > Admin > configuration > global tab > look for core setting and tick DEBUG? (save and front end will show what files are being used)
/*********************** Most important is everytime the page refreshes it costs 50c so can not leave open longer then absolutely neccessary as it will cost *******************/