in reply to Re: Authorize.Net
in thread Authorize.Net

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.

Replies are listed 'Best First'.
Re: Re: Re: Authorize.Net
by dws (Chancellor) on Aug 07, 2003 at 21:48 UTC
    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

Re: Re: Re: Authorize.Net
by Anonymous Monk on Aug 07, 2003 at 20:52 UTC
    I must stress that this only happens in about 1/3 so I know it does work .. but I think it is a timeout