Wednesday, May 23rd

Last update05:36:30 AM GMT

Font Size

Screen

Profile

Layout

Menu Style

Cpanel
Welcome, Guest
Username Password: Remember me

VIRTUEMART ERROR ON INCORRECT DETAILS
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: VIRTUEMART ERROR ON INCORRECT DETAILS

VIRTUEMART ERROR ON INCORRECT DETAILS 1 year, 5 months ago #3407

  • weelliam
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
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 *******************/

Re: VIRTUEMART ERROR ON INCORRECT DETAILS 1 year, 5 months ago #3408

A brief look at the virtuemart code would suggest the problem may be arising in ./administrator/components/com_virtuemart/classes/ps_checkout.php where the checkout is redirecting to the last step on an error (line 846).

Do you have a working example of the issue, say on a test server with a test payment system set up? If so, that will help in debugging the problem.

Cheers


Hayden

Re:VIRTUEMART ERROR ON INCORRECT DETAILS 1 year, 5 months ago #3409

  • weelliam
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hi Hayden,

The developer who worked on it has left me with it unfinished.

I'm not sure he set it up with a test payment system.

My deadline to deliver this is really tight.
Would you be able work on it on Monday?

You can email me if you are interested !

thanks for your help ,

Will : )
  • Page:
  • 1
Time to create page: 0.40 seconds
You are here: Forum