Skip Menu |

This queue is for tickets about the Business-OnlinePayment-AuthorizeNet CPAN distribution.

Report information
The Basics
Id: 1804
Status: resolved
Priority: 0/
Queue: Business-OnlinePayment-AuthorizeNet

People
Owner: Nobody in particular
Requestors: tjmather [...] maxmind.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.11
Fixed in: (no value)



Subject: reports "No x_response_code from server" when non-ascii letters used
Whenever there is a successful credit card transaction where one of the fields has an accented character in it (e.g Frödingsvägen), Business-OnlinePayment-AuthorizeNet returns a No x_response_code from server error instead of returning success as it should. This is a problem because then the user doesn't get their order fulfilled, while their credit card does get charged, and it an issue with the default behaviour of Text::CSV_XS. I have included a patch to fix this by passing binary=>1 to Text::CSV_XS. Distribution name and version: Business-OnlinePayment-AuthorizeNet-3.11 Perl Version: 5.8.0 OS vendor and version: Linux 2.4.18 (Redhat Linux 7.2)
--- /tmp/AuthorizeNet.pm Thu Nov 21 11:12:35 2002 +++ AuthorizeNet.pm Thu Nov 21 11:13:26 2002 @@ -143,7 +143,7 @@ #escape NULL (binary 0x00) values $page =~ s/\x00/\^0/g; - my $csv = new Text::CSV_XS(); + my $csv = new Text::CSV_XS({binary => 1}); $csv->parse($page); my @col = $csv->fields();
patch applied to 3.12