Reply
Member
Posts: 5
Registered: ‎08-12-2019

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

 

Highlighted
New Member
Posts: 1
Registered: ‎09-10-2019

Re: ACH nameonaccount SingleQuote issue

I have encouter the problem and stuch somwhere like that.

 

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