[thelist] Proceed to Checkout - Authorize.net Question

Rob Smith rob.smith at THERMON.com
Fri Mar 18 15:51:22 CST 2005


>> I suppose I just need to re-RTFM,

>OK :-)

I did over some great Asian food last night. I determined that I needed to
set my gears in motion to POST the information back to my designated receipt
page. And I found out that everything I send to Authorize.net is echoed back
to me. The manual even was kind enough to let me or remind me what those
fields where. Basically, on the receipt page, I have:

<?php 
	if ($_POST["x_response_code"] == 1) { // You're approved.
		// insert the information if you are establishing a new
account
		// or update if you have a previous account and are
upgrading
	} elseif ($_POST["x_response_code"] == 2) { // You're declined
		header("Location:TransactionDeclined.php"); 
	} elseif ($_POST["x_response_code"] == 3) {
		header("Location:TransactionError.php");
	}
?>

<!-- echo confirmation number / invoice number -->
<!-- echo entire page of personal and financial information but hide cc
num's -->

I'm going to have a friend test this out tonight with me. Authorize.net said
I can't use my own card on my own business. Can anyone confirm that I'm
doing this right?

Rob


More information about the thelist mailing list