Forum Moderators: buckworks

Message Too Old, No Replies

captureng x auth code in authorize.net test account

         

shanthini

8:51 am on Dec 24, 2009 (gmt 0)

10+ Year Member



Hi,

I registered and got loginId, transactionkey for test mode. The payment process and every thing is working fine. After payment I need to update my table based on the return values from the gateway. For example after successful payment I need to extend the subscription expiry date.

I could not able to capture any value from the gate way.

Can anybody suggest whether this is possible in test mode? Can I capture return values from the gate way and update my table based on that?

Thanks in advance,
shanthini

lorax

10:30 am on Dec 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hello and welcome to WebmasterWorld!
I'm pretty sure it depends upon the gateway but I would think they'd all provide proper response codes. Have you tried contacting your gateway provider or looking through their developer's manual?

rocknbil

8:00 pm on Dec 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can anybody suggest whether this is possible in test mode?

It's absolutely possible, I do it al the time.

I could not able to capture any value from the gate way.

Nothing at all, a blank string? Most often, at least in my case, the primary cause is you are not posting FROM a valid SSL location. Try it from the https: version of your site.

Are you using curl? (Check your curl logs too.)

If you do something like this (perl example, works in PHP too, just different methods for curl),

$secureServer = 'https://secure.authorize.net/gateway/transact.dll';

(or, use the A.N. test server url)
....

$postdata = qq¦curl -m 10 -c 10 -d '¦;
for $v (0..$#send_order) {
$postdata .= qq¦$var_keys[$v]=$var_values{$var_keys[$v]}&¦;
}
$postdata .= 'x_Test_Request=TRUE&';
$postdata .= qq¦x_Login=$anL&x_Tran_Key=$TX' $secureServer¦;
$result = `$postdata`;

$result should contain a string of delimited characters you can split/explode. If its empty, you're most likely not posting from the https version of your server.