in reply to Authorize.Net

Am I missing a glaring solution?

Without some indication of how you're trying to post, we can only speculate. If you want help, please post (as a reply to this thread) a small sample of code that demonstrates the problem.

Replies are listed 'Best First'.
Re: Re: Authorize.Net
by Anonymous Monk on Aug 07, 2003 at 20:51 UTC
    Well my code resembles that of the example I gave above, but here is where it fails...

    my $post_data = &make_form(%submit_data); my ($page,$response,%headers) = &post_https($server,$port,$path,'',$ +post_data); if (defined $page) { $csv = new Text::CSV(); $csv->parse($page); @col = $csv->fields(); ...... }

    The problem is that @col is empty .. which makes me think the process is timimg out and not getting the page back from authorize.net.
      I should have said a small, complete example that demonstrates the failure. There might be a problem in post_https(), but without seeing the code, how can we know.

      I don't see any evidence, for example, that you're looking for error codes in $response.

      What does $reponse look like when you see a failure? For that matter, what does $page look like? Perhaps you're getting back an error page that can't be parsed.

        This is the code I am using - Re: Interfacing to Authorize.Net

        Anyone have any ideas?? Thank you very much in advance

        anonymous editor pops in and replaces non-linked url with id tag

      I must stress that this only happens in about 1/3 so I know it does work .. but I think it is a timeout