Posted by thtas on December 10, 2009 at 9:52pm
1 follower
| Project: | eWay payment gateway for e-Commerce |
| Version: | 6.x-1.0-beta3 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
I put together a small patch to include all the possible error messages which eway returns and display them to the user.
so, instead of the user seeing an error like "05,Do not honor" which really means nothing to most people. it will now say
"Credit card transaction failed with the following problem: Do Not Honour. There might be a problem with your account or the card details have not been entered correctly"
I added a function call so other modules can implement a hook_eway_txn_messages function like this:
<?php
function mymodule_eway_txn_messages()
{
return array(
'05' => 'Do Not Honour. There might be a problem with your account or the card details have not been entered correctly',
'58' => 'Function Not Permitted to Terminal. MORE TEXT HERE IF I WANT',
);
}
?>Which allows users total control over every response message
I wasn't sure whether to patch the dev version or the beta. Seing as the beta is newer, i applied the patch to that.
| Attachment | Size |
|---|---|
| ec_eway-2009.12.09-thtas.patch | 2.32 KB |
| ec_eway_messages.inc_.txt | 2.22 KB |