cancel
Showing results for 
Search instead for 
Did you mean: 

ACH nameonaccount SingleQuote issue

Hi,

 

As per https://developer.authorize.net/api/reference/features/acceptjs.html

bankData.nameOnAccount = document.getElementById('nameOnAccount').value;

 

If we have single quote in nameOnAccount , do we need to remove it or we need to escape it?

 

Our Problem:

We did not remove single quote or replace.

We pass nameOnAccount like below

e.g John O'Corner

Our Code  - 

bankData.nameOnAccount =  $("#AccountName").val();

secureData.bankData = bankData;

In Accept.dispatchData(secureData, responseHandler);

 

function responseHandler(response) {

if (response.messages.message[i].code == "E_WC_26") {
//It is hitting this block - as per API - "Please provide valid account holder name."
}

}

 

Can you guys help me.

Am i misiing something.

Karthik.K

 

kkantharaj
Member
1 REPLY 1

I have encouter the problem and stuch somwhere like that.

 

I will recommend visiting http://www.appsquadz.ae/

maryammiahan
Member