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.ordId);
oRequest.Value("billTo_firstName",qOrder.ordBFirstName);
oRequest.Value("billTo_lastName",qOrder.ordBLastName);
oRequest.Value("billTo_street1",qOrder.ordBAddress1);
oRequest.Value("billTo_city",qOrder.ordBCity);
oRequest.Value("billTo_state",qOrder.stAbbr);
oRequest.Value("billTo_postalCode",qOrder.ordBPostal);
oRequest.Value("billTo_country",qOrder.coAbbr);
oRequest.Value("billTo_email",qOrder.ordBEmail);
oRequest.Value("billTo_phoneNumber",qOrder.ordBPhone);
oRequest.Value("shipTo_firstName",qOrder.ordSFirstName);
oRequest.Value("shipTo_lastName",qOrder.ordSLastName);
oRequest.Value("shipTo_street1",qOrder.ordSAddress1);
oRequest.Value("shipTo_city",qOrder.ordSCity);
oRequest.Value("shipTo_state",qOrder.shipState);
oRequest.Value("shipTo_postalCode",qOrder.ordSPostal);
oRequest.Value("shipTo_country",qOrder.shipCountry);
oRequest.Value("card_accountNumber",qOrder.ordCCNumber);
oRequest.Value("card_expirationMonth",Month(qOrder.ordCCExp));
oRequest.Value("card_expirationYear",Year(qOrder.ordCCExp));
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208685
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54