Jason - can you post the code from PayFlowProTest.cfc? At least the first 40 lines or so? Do you get this same error if you instantiate cfpayment in a test.cfm file vs. through a unit test? And, can you confirm that the cfpayment mapping points to the right place per the docs? Brian
<cffunction name="setUp" returntype="void" access="public" output="false">
<cfscript>
var gw = {};
variables.svc = createObject("component", "cfpayment.api.core");
gw.path = "payflowpro.payflowpro";
gw.Username = 'xxxxxxxx';
gw.Password = 'xxxxxxxx';
gw.Partner = 'xxxxxxxx';
gw.Vendor = 'xxxxxxxx';
gw.TestMode = true; // defaults to true
// create gw and get reference
variables.svc.init(gw);
variables.gw = variables.svc.getGateway();
</cfscript>
</cffunction>
<cffunction name="testPurchase" access="public" returntype="void" output="false">
<cfset var money = variables.svc.createMoney(100) /><!--- in cents, $1.00 --->
<cfset var response = "" />
<cfset var options = {} />
<!---// test the purchase method //--->
<cfset response = gw.purchase(money = money, account = createValidCard(), options = options) />
<cfset assertTrue(response.getSuccess(), "The authorization did not succeed") />
</cffunction>
<!---// Private helper methods //--->
<cffunction name="createValidCard" access="private" returntype="any" output="false">
<!--- these values simulate a valid card with matching avs/cvv --->
<cfset var account = variables.svc.createCreditCard() />
<cfset account.setAccount(4321432143214327) />
<cfset account.setMonth(12) />
<cfset account.setYear(year(now())+1) />
<cfset account.setVerificationValue(999) />
<cfset account.setFirstName("John") />
<cfset account.setLastName("Doe") />
<cfset account.setAddress("888") />
<cfset account.setPostalCode("11111") />
<cfset account.setCountry("USA") />
<cfset account.setRegion("CA") />
<cfset account.setCity("San Jose") />
<cfreturn account />
</cffunction>
getRequestData() from the response, but I could use the headers to make sure I'm doing this correctly.
Thanks,
-jb