Yes this module does have some problems. I haven't seen the encapsulate problem, that should encapsulate the info in whatever you set it to. I also don't see this line in AuthorizeNet 3.13 (latest version), perhaps you have a different version of it?

Also I don't see where the name field is required, and the module adds the x_ and the proper name for AuthorizeNet for you (since adding a x_ to all the params is annoying and seems unnessicary). They also don't exactly coorispond, I think the idea is to make all the OnlinePayment modules similar.

Anyway, with the newest version, I had some problems with a missing parameter and sometimes AuthorizeNet was returning '*' characters around the fields along with the encapsulation. I wrote a small patch that fixed these problems and sent it to the authors. I don't believe they have released a new version since however.

Make sure you have the newest version and put in the patch see if it works for you :)

--- AuthorizeNet.pm.org 2003-08-28 14:56:03.000000000 -0500 +++ AuthorizeNet.pm 2003-08-28 14:52:51.000000000 -0500 @@ -83,6 +83,7 @@ type => 'x_Method', login => 'x_Login', password => 'x_Password', + merchant_email => 'x_Merchant_Email', transaction_key => 'x_Tran_Key', action => 'x_Type', description => 'x_Description', @@ -179,6 +180,10 @@ my $csv = new Text::CSV_XS({ 'binary'=>1 }); $csv->parse($page); my @col = $csv->fields(); + + # AuthorizeNet seems to be returning * * around + # the fields + foreach(@col) { s/(?:^\*|\*$)//g } $self->server_response($page); $self->avs_code($col[5]);

In reply to Re: Business::OnlinePayment::AuthorizeNet Problems by cfreak
in thread Business::OnlinePayment::AuthorizeNet Problems by saberworks

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.