Gravity Forms eWAY Pro v1.4.2

Gravity Forms eWAY Pro v1.4.2 has just been released. This release prevents V6058 Invalid Customer Title errors; fixes error “GetFieldsByType is not defined” in some admin pages; and fixes the licence activate / deactivate buttons.

V6058 Invalid Customer Title errors

Creating token customers in eWAY requires a customer title. Technically, an empty customer title is allowed, but either way I have to send one. I’ve seen in the documentation that there is a limited list of accepted customer titles, but eWAY has always accepted whatever I sent from a Gravity Forms name field so I haven’t been paying much attention to that. Until someone mapped a simple text field to the customer title, allowing anything to be entered. Then eWAY started triggering “V6058 Invalid Customer Title errors”!

For the record, here’s what eWAY accepts for the customer title:

Mr., Ms., Mrs., Miss, Dr., Sir, Prof.

Anything else is rejected; well, sort of. eWAY does accept a couple of other titles without error — Fr., Rev., Esq. — but it won’t store them.

To prevent the error occurring, only the accepted titles will be sent to eWAY; all other titles will be suppressed. This allows your customers to enter whatever title they use into your form, to be stored in the form entry, without triggering eWAY’s field validation cop. Oh, and it doesn’t matter what letter case is used, or whether there’s a “.” after the title, because I normalise the title before sending it to eWAY.

GetFieldsByType is not defined

I broke JavaScript in the forms admin! Just on a few pages, but enough to be a nuisance. I had added some code that went looking for the Credit Card field, which is a perfectly reasonable thing to do on the form editor page, but totally unreasonable on the other form admin pages. So now it doesn’t, and admin pages aren’t broken by me now.

Licence activate / deactivate buttons

I also broke the add-on licence activate and deactivate buttons. I’m not sure when I broke them, because to be frank, it’s the one feature I haven’t really been testing since I added them! But they work again now, which could help resolve some licensing problems for some people.

You can update to the latest version from your WordPress plugin admin page. Here’s the full changelog for Gravity Forms eWAY Pro.

Tags:

Posted on