the_Don has asked for the wisdom of the Perl Monks concerning the following question:

I have the need to communicate with various Credit Card validation companies, specifically DPI and AuthorizeNet.

I was wondering if there were existing modules or scripts written to communicate with the verification service and correctly interpret their responses. I searched on PM and got threads about re-billing theory and one that asked a similar question, but the links offered are to more services, not to Perl-based communications.

I am just trying to avoid re-inventing the wheel.

the_Don
...making offers others can't rufuse.

Replies are listed 'Best First'.
Re: Credit Card Validation Communications
by derby (Abbot) on Oct 11, 2002 at 15:37 UTC
Re: Credit Card Validation Communications
by giulienk (Curate) on Oct 11, 2002 at 15:38 UTC
    You should search the CPAN.
    Try to look for Business::OnlinePayment


    $|=$_="1g2i1u1l2i4e2n0k",map{print"\7",chop;select$,,$,,$,,$_/7}m{..}g

Re: Credit Card Validation Communications
by zentara (Cardinal) on Oct 11, 2002 at 16:17 UTC

    Basically you will POST a hash of data, with fields defined by the authorization service. These names vary but are usually similar across different services. Like "card_holder_name", etc. Then they return a hash , to a cgi of your choice, which you then split into name-value pairs, like any other cgi. Then you do what you need to do with the response. Almost all verifying services have a detailed developer's guide "hidden" somewhere on their website. These guides detail the various required field names, and usually give you a test server to practice on. For instance http://www.authorizenet.com/support/

Re: Credit Card Validation Communications
by the_Don (Scribe) on Oct 11, 2002 at 16:44 UTC

    Thank you thus far. I searched CPAN for 'Credit' and the thought of naming AuthorizeNet specifically never crossed my mind. My fault.

    the_Don
    ...making offers others can't rufuse.