PaymentType XML API Documentation (Last Modified: 9/7/2001 4:36:58 PM)

Basic Concepts
The PaymentType XML API provides a list of Payment Types.
The base URL of this API is http://api.cisp.com/PaymentType.XML.asp.
 
Input Variables
Name Description
ClientID Client code identifying the client information to access
ID ID of the payment type
Name Min Max Type Required
ClientID 4 4 String True
ID 1 3 Long False
 
Return Document
The return value is a standard XML document with ICOP as the root node.
Each section of the output variables listed below is a child node to the ICOP node. Each parameter within that section is an attribute to that section's node.
Payment Type Output Variables
Name Description Type
ID ID of the payment type Long
LABEL Text label for the payment type String
 
Sample Output
<?xml version="1.0" ?>
<ICOP>
- <PAYMENT_TYPE ID="1" LABEL="ACH" />
- <PAYMENT_TYPE ID="2" LABEL="Check" />
- <PAYMENT_TYPE ID="3" LABEL="Credit Card" />
</ICOP>
 
Sample ASP Code
<%
Option Explicit
Dim objXML, objXSL

' Create the MSXML DOMDocument object for the xml document output of the API
Set objXML = Server.CreateObject("MSXML2.DOMDocument")
objXML.async = False
objXML.setProperty "ServerHTTPRequest", True
objXML.load "http://api.cisp.cc/PaymentType.XML.asp?ClientID=DEMO"

' Create the MSXML DOMDocument object for the xsl stylesheet to transform the xml
Set objXSL = Server.CreateObject("MSXML2.DOMDocument")
objXSL.async = False
objXSL.load Server.MapPath("PaymentType.xsl")

' Transform the xml with the xsl stylesheet and write the result HTML
Response.Write objXML.transformNode(objXSL)
%>