Hi Jeremy,
Sorry, been busy but here is a possible answer:
><cfset hm = Webpay.newBundle()>
>
>Which works
>
>But the second part I'm not sure how to write the syntax...
>webpay.put_certificatePath bundle, "c:\webpay\gateway.cer"
This looks very familiar so try this:
<!--- ' fetch parameter values from request page -
fudged for this email --->
<cfset sThisPath = "#GetDirectoryFromPath(GetBaseTemplatePath())#gateway.cer">
<cfset gatewayAddress = "a.domain.name">
<cfset gatewayPort = 9999>
<cfset clientId = 10101010101>
<cfset certificatePath = sThisPath>
<cfset certificatePassword = "webpay">
<cfset trustedCertificatesFile = "">
<cfobject type="COM" class="WebPayATL.WebPay" name="webpay" action="CREATE">
<cfset bundle = webpay.newBundle()>
<!--- ' set certificate information --->
<cfset ret = webpay.put_certificatePath (bundle, certificatePath)>
<cfset ret = webpay.put_certificatePassword (bundle, certificatePassword)>
<cfset ret = webpay.put (bundle, "_CAFILE", trustedCertificatesFile)>
<cfset ret = webpay.put (bundle, "CLIENTID", clientId)>
<!--- ' set WTS gateway information --->
<cfset ret = webpay.setPort (bundle, gatewayPort)>
<cfset ret = webpay.setServers (bundle, gatewayAddress)>
<!--- ' set card details --->
<cfset ret = webpay.put (bundle, "INTERFACE","CREDITCARD")>
<cfset ret = webpay.put (bundle, "TRANSACTIONTYPE","PURCHASE")>
<cfset ret = webpay.put (bundle, "TOTALAMOUNT", cash)>
<cfset ret = webpay.put (bundle, "CARDDATA","4564456445644564")>
<cfset ret = webpay.put (bundle, "CARDEXPIRYDATE","0504")>
<cfset ret = webpay.put (bundle, "DEBUG","OFF")>
<!--- ' process the transaction --->
<cfset success = webpay.execute( bundle )>
The above works on CF5, don't know about MX.
--
Yours,
Kym
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004