logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Joe Payne2  
#1 Posted : Thursday, June 16, 2022 12:58:37 PM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
When the company name contains an ampersand (&), the shopper cannot process payment using a stored card profile. AuthNet responds:
Quote:
Extra Options is invalid. E00013


See this support post for why and solution:
https://community.develo...invalid-error/td-p/57955

All address-related fields should have symbols escaped or stripped (&, %, $, # etc) before communicating with AuthNet CIM API.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shaharyar  
#2 Posted : Friday, June 17, 2022 4:29:34 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Thanks for pointing this out.

I am going to register this as a bug.
thanks 1 user thanked shaharyar for this useful post.
Joe Payne2 on 6/17/2022(UTC)
Joe Payne2  
#3 Posted : Thursday, August 25, 2022 2:19:50 PM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
Is there a fix for this you could post here? We've been seeing this problem more often lately.
shaharyar  
#4 Posted : Friday, August 26, 2022 2:55:28 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
To fix:

1- Open file AuthorizeNetCIM/AuthNetCIMProvider.cs
2- Search for
Code:
fields.Add(string.Format("{0}={1}", "x_firstName", address.firstName));
fields.Add(string.Format("{0}={1}", "x_lastName", address.lastName));
fields.Add(string.Format("{0}={1}", "x_company", address.company));
fields.Add(string.Format("{0}={1}", "x_address", address.address));
fields.Add(string.Format("{0}={1}", "x_city", address.city));

3- Replace with
Code:
fields.Add(string.Format("{0}={1}", "x_firstName", HttpUtility.UrlEncode(address.firstName)));
fields.Add(string.Format("{0}={1}", "x_lastName", HttpUtility.UrlEncode(address.lastName)));
fields.Add(string.Format("{0}={1}", "x_company", HttpUtility.UrlEncode(address.company)));
fields.Add(string.Format("{0}={1}", "x_address", HttpUtility.UrlEncode(address.address)));
fields.Add(string.Format("{0}={1}", "x_city", HttpUtility.UrlEncode(address.city)));
4- Prepare the zip for plugin and update in Website/Plugins folder
thanks 1 user thanked shaharyar for this useful post.
Joe Payne2 on 8/26/2022(UTC)
Joe Payne2  
#5 Posted : Friday, August 26, 2022 9:46:18 AM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
You are my hero. Thank you!
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.