Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
clmayo #1
cybersource com object in CF5
I need help getting the cybersource COM object working in CF 5. I have some
code from a gentleman that works in 6.1, but I am getting the following error
in CF5
Arguments expected by object does not match arguments specified in the tag
here is the code
<cfscript>
oRequest = CreateObject("COM","CyberSourceWS.Hashtable");
oRequest.Value("ccAuthService_run","true");
// we will let the Client get the merchantID from the MerchantConfig object
// and insert it into the Hashtable.
// this is your own tracking number. This sample uses a hardcoded value.
// CyberSource recommends that you use a unique one for each order.
oRequest.Value("merchantReferenceCode",qOrder.ordI d);
oRequest.Value("billTo_firstName",qOrder.ordBFirst Name);
oRequest.Value("billTo_lastName",qOrder.ordBLastNa me);
oRequest.Value("billTo_street1",qOrder.ordBAddress 1);
oRequest.Value("billTo_city",qOrder.ordBCity);
oRequest.Value("billTo_state",qOrder.stAbbr);
oRequest.Value("billTo_postalCode",qOrder.ordBPost al);
oRequest.Value("billTo_country",qOrder.coAbbr);
oRequest.Value("billTo_email",qOrder.ordBEmail);
oRequest.Value("billTo_phoneNumber",qOrder.ordBPho ne);
oRequest.Value("shipTo_firstName",qOrder.ordSFirst Name);
oRequest.Value("shipTo_lastName",qOrder.ordSLastNa me);
oRequest.Value("shipTo_street1",qOrder.ordSAddress 1);
oRequest.Value("shipTo_city",qOrder.ordSCity);
oRequest.Value("shipTo_state",qOrder.shipState);
oRequest.Value("shipTo_postalCode",qOrder.ordSPost al);
oRequest.Value("shipTo_country",qOrder.shipCountry );
oRequest.Value("card_accountNumber",qOrder.ordCCNu mber);
oRequest.Value("card_expirationMonth",Month(qOrder .ordCCExp));
oRequest.Value("card_expirationYear",Year(qOrder.o rdCCExp));
oRequest.Value("card_cvNumber",qOrder.ordCVV2);
oRequest.Value("purchaseTotals_currency","USD");
oRequest.Value("billTo_ipAddress",cgi.remote_addr) ;
oRequest.Value("item_0_productName","Order #qOrder.cartId#");
oRequest.Value("item_0_productSKU","");
</cfscript>
It seems that CF 5 does not like the two values in the parens. This is what
the COM object is expecting in one form or another, and it obviously works in
6.1
Any help would be greatly appreciated.
Thanks,
Cary
clmayo Guest
-
ColdFusion + Java Guru Install Cybersource Java Api
Hi, I need to install a cybersource java api on a coldfusion MX 6 server and call it as a component to pass variables to their gateway. Here... -
Dynamically loading user control into Placeholder gives Object reference not set to an instance of an object
I've created user controls that contain listboxes that are dynamically populated from the database. In the html view of the user control... -
COM Object Method Not Found (Cybersource)
I don't have experience with their COM object but in developing ours for CF, I found that CF is very picky about the various COM definition... -
CyberSource Credit Card Payment Gateway
Hey gang .. I'm working here on a fusebox 4 app and I now need to connect the online donations to cybersource .. Has anyone here been able to get... -
Cannot serialize object of type System.Object[,]. Multidimensional arrays are not supported
Hi, I get this on server when trying to retun a 2 dim array. I apprecaite that they are not supported as per...



Reply With Quote

