I'm trying to use Business::OnlinePayment for the first time. When the new() method is called more than once during the life of a program (very common with a batch script or mod_perl), I get a whole bunch of warnings about redefined subs. This has been reported, and there is a simple patch for it, but this experience is making me lose faith in the module. How could other people have used this without running into this problem? Not everyone could have been running it under CGI.

So, my question is, are there any people out there using this module in a non-CGI environment successfully? Credit card processing is not a place where you want to have any nagging distrust for a module.

The bug seems to be in the core module, but FYI I am using the AuthorizeNet subclass with it at the moment.


In reply to Business::OnlinePayment sub redefined warnings by perrin

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.