I am not sure if eWay is updated and fixed for bugs in the recent releases of GetShopped (formerly wp-ecommerce), an e-commerce plugin for WordPress. But here is the issue (I am using plug-in version 3.7.7):
I got a call from eWay today telling me that they were getting the customer’s credit card number in the Credit Card name field. They warned me that this is against the bank policy and this might cancel our merchant facility. They went ahead and manually cleared all credit card numbers from the credit card name fields. I looked up the eWay code and found where this was coming from.
gold_cart_files_plugin > merchants > eway.php
line : 493
$eway->setTransactionData(“CardHoldersName”, $_POST['card_number']); //mandatory field
$eway->setTransactionData(“CardNumber”, $_POST['card_number']); //mandatory field
notice the same variable names for both CC name and CC number ? that is what causing the problem. Also notice that the payment form doesnt ask for CC holder’s name. This is because it picks that up from the first and last name of the person making the order. See below:
line : 327
$objRebill->RebillCCname($data['first_name'].” “.$data['last_name']);
Though, most banks don’t require the exact CC name to process the transaction but this can cause other problems in record keeping.
MY FIX:
1. What if the customer wants a different name on the checkout form as on the CC ? So lets add a specific CC name field in the payment form.
after line : 33
<tr> <td> Credit Card Holder Name * </td> <td> <input type=’text’ value=” name=’card_name’ /> </td></tr>
2. Update variables at line 327. Change to :
$objRebill->RebillCCname($_POST['card_name']);
3. Update variables at line 493. Change to :
$eway->setTransactionData(“CardHoldersName”, $_POST['card_name']); //mandatory field
After I had applied the fix, I rang eWay and they confirmed that the issue was solved.
That’s about it. I hope its fixed in the future releases.
Hi mate! I completely agree with your opinion. Thank you for having written this.