[thelist] ColdFusion CFHTTP and Surepay.com

Seth Bienek seth at sethbienek.com
Thu Feb 22 17:25:59 CST 2001


Hi Chris,

I ran the example they listed through CF's URLDecode() function, cleaned it
up a little, and this is what it came back with:

<!DOCTYPE pp.request PUBLIC " //IMALL//DTD PUREPAYMENTS 1.0//EN"
"http://www.purepayments.com/dtd/purepayments.dtd">
<pp.request merchant="1001" password="password">
	<pp.auth ordernumber="123" shippingcost="5.00USD" taxamount="1.00USD"
ipaddress="255.255.255.255"
ponumber="123"¢0verbalauthdate="20000524180056000">
		<pp.creditcard number="4111111111111111" expiration="12/02">
			<pp.address type="billing" fullname="Suzy Snowflake" address1="233 Jack
Frost Blvd" address2="Suite 820" city="Santa Monica" state="CA" zip="90401"
country="US" eveningphone="3103094100" email="null at imall.com" />
		</pp.creditcard>
		<pp.address type="shipping" fullname="Jack Frost" address1="25314 North
250 West" address2="Suite 110" city="Provo" state="UT" zip="84604"
country="US" eveningphone="8012265007" email="null at imall.com" />
		<pp.lineitem sku="P-1" description="Description-1" quantity="1"
taxrate="0" unitprice="10.00USD">
		</pp.lineitem>
	</pp.auth>
</pp.request>

As you can see, it's just an XML packet that validates to their DTD.  I'd
look at the DTD to make absolutely sure the fields in this packet map to
what you expect.

You can send this easily using cfcontent; make sure you use "text/xml" as
the content-type.

It would make a handy custom tag as well. :)

Regards,

Seth

------------------------------
Seth Bienek
Solutions Development Manager
Stonebridge Technologies, Inc.
972.455.7294 tel
972.404.9754 fax
ICQ #7673959
------------------------------

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Chris Montgomery
> Sent: Thursday, February 22, 2001 3:24 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] ColdFusion CFHTTP and Surepay.com
>
>
> Has anyone used Surepay.com to process credit card transactions? They have
> an example at http://www.surepay.com/homepage/b2c/sdk/faq.html#other for
> using CFHTTP to send transaction information to their service
> (apparently in
> XML), but it appears that what they are showing is what the data
> would look
> like on *their* end, after being converted by a CFHTTP post. What I am
> fishing for is how to get the form data into the CFHTTP posting to send to
> their site. I'm also not sure but it might be better to write a
> file in XML
> format and post that using CFHTTP. Any ideas?
>
> Also, on the return end, when the reply from Surepay.com is sent back, it
> would appear that I need to do some parsing to get the return
> values out for
> storing in a database. Does that sound about right?
>
> TIA,
>
> Chris Montgomery             monty at astutia.com
>
> Web Development & Consulting http://www.astutia.com
> Allaire Consulting Partner
> 210-490-3249/888-745-7603    Fax 210-490-4692
> AIM: astutiaweb; ICQ: 7381282; Firetalk: Ag78
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
>






More information about the thelist mailing list