HomeHome Product Discus... Product Discus...SmithCartSmithCartCustom Web Service Gateway ParametersCustom Web Service Gateway Parameters
Previous
 
Next
New Post
4/15/2011 12:09 PM
 

Hi.  I'm evaluating the SmithCart for purchase.  I've read the page in the user manual on the Custom Web Service Gateway (pg 41), and I know what the parameter names are that this gateway option requires back from the POST (AuthCode, Status, TransID, Notes, Amount). 

My question is, what format does this gateway option expect these return parameters to be in?  I tried returning this simple XML without success:

<?xml version="1.0" encoding="utf-8" ?>
<CartResponse>
     <AuthCode>APPROVED</AuthCode>
     <Status>SALE/APPROVED</Status>
     <TransID>ABC123</TransID>
     <Notes>This is a test.</Notes>
     <Amount>55.44</Amount>
</CartResponse> 

 
New Post
4/15/2011 3:13 PM
 
The custom gateway/web service option in the cart uses the standard WebRequest Class (http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx) in dot net to communicate with your payment gateway.

The cart expects the transaction response parameters from the payment gateway to be returned as an ampersand ("&") delimited string. The gateway response parameters provide information about the status of a transaction whether it was accepted or declined as well as other information about the transaction.

The integration and communication between the cart and the payment gateway is very similar to the Authorize.Net AIM payment gateway integration here http://www.authorize.net/support/AIM_guide.pdf

Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
4/15/2011 4:31 PM
 

Thanks Scott!  That's exactly the information I needed. Works like a charm.  Here's some sample code passing the reply back:

 

string myResponse = "AuthCode=APPROVED&Status=APPROVED&TransID=ABC123&Amount=11.22&Notes=This is a test.&";

Response.Clear();
Response.ContentType = "text/plain";
Response.Write(myResponse);
Response.End();

 

 

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartCustom Web Service Gateway ParametersCustom Web Service Gateway Parameters