I need help getting a CF version of the Cartweaver shopping cart to interact
with the "Hosted Order Page" implementation of the CyberSource credit card
processing system. CyberSource doesn't support ColdFusion, so I need to figure
out how to use the CyberSource-supplied PHP "security script" to send form data
from a CF page to the CyberSource server.
Here's the sample page, for what the shopping cart would look like in PHP. As
you can see, it appears staightforward, though I'm just not sure how this can
be done if my cart is in CF:
<?php include("HOP.php") ?>
<html><body>
<h1>sample_product_name</h1>
<p>Here, you enter the description of your product.</p>
<form action="https://orderpagetest.ic3.com/hop/orderform.jsp" method="post">
<?php InsertSignature3("10.00", ?usd?, ?sale?) ?>
<input type="hidden" name="orderPage_transactionType" value="sale">
<input type="hidden" name="billTo_firstName" value="John">
<input type="hidden" name="billTo_lastName" value="Doe">
<input type="hidden" name="billTo_email" value="jdoe@cybersource.com">
<input type="hidden" name="merchantDefinedData1" value="ship">
<input type="submit" name="submit" value="Buy Now">
</form>
</body></html>
Steve Sommers - 18 Sep 2007 21:24 GMT
Most of it can be used as-is. I'm fairly certain the first php tag can be
removed but I'm not sure what this line does:
<?php InsertSignature3("10.00", ?usd?, ?sale?) ?>
Maybe see if they have an ASP example...