Forum Moderators: buckworks
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
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.