Is this a direct copy of your code?  If so, this appears to be your problem:

"<cfhttpparam type="url" name="pdw"
value="#urlencodedformat(paypal_enviroment.api_pwd)#">"

You misspelled "pwd" in the name attribute.

Scott

On Mon, Apr 26, 2010 at 6:16 PM, Matthew P. Smith 
<[email protected]>wrote:

>
> I am getting the following:
>
>
> TIMESTAMP=2010%2d04%2d26T23%3a43%3a12Z&CORRELATIONID=b2b38432aa389&ACK=Failure&VERSION=0%2e000000&BUILD=1268624&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error
>
>
> Please note I have replaced api_user, api_pwd, api_sig with the proper
> values.
>
>
> I have tried commenting out the cfloop but it changes nothing.
>
>
> <cfset paypal_enviroment = structnew()>
>
> <cfset paypal_enviroment.api_url = "https://api-3t.paypal.com/nvp";>
>
> <cfset paypal_enviroment.api_user ="(user)">
>
> <cfset paypal_enviroment.api_pwd ="(pwd)">
>
> <cfset paypal_enviroment.api_signature ="(sig)">
>
> <cfset paypal_enviroment.return_url ="
> https://site/index.cfm/fuseaction/SECUREPaypalCheckout.return/index.cfm";>
>
> <cfset paypal_enviroment.cancel_url ="
> https://site/index.cfm/fuseaction/SECUREPaypalCheckout.cancel/index.cfm";>
>
> <cfhttp method="get" url="#paypal_enviroment.api_url#" throwonerror="yes">
>
> <cfhttpparam type="url" name="user"
> value="#urlencodedformat(paypal_enviroment.api_user)#">
>
> <cfhttpparam type="url" name="pdw"
> value="#urlencodedformat(paypal_enviroment.api_pwd)#">
>
> <cfhttpparam type="url" name="signature"
> value="#urlencodedformat(paypal_enviroment.api_signature)#">
>
> <cfhttpparam type="url" name="method" value="SetExpressCheckout">
>
> <cfhttpparam type="url" name="currencycode" value="USD">
>
> <cfhttpparam type="url" name="allownote" value="1">
>
> <cfloop query="qry_paypallock_get">
>
> <cfset variables.paypal_item_row = qry_paypallock_get.currentrow - 1>
>
> <cfhttpparam type="url" name="L_NAME#variables.paypal_item_row#" value="#
> qry_paypallock_get.name#">
>
> <cfhttpparam type="url" name="L_NUMBER#variables.paypal_item_row#"
> value="#qry_paypallock_get.tblproductsfk#">
>
> <cfhttpparam type="url" name="L_DESC#variables.paypal_item_row#"
> value="#qry_paypallock_get.shortdescription#">
>
> <cfhttpparam type="url" name="L_AMT#variables.paypal_item_row#"
> value="#qry_paypallock_get.unitprice#">
>
> </cfloop>
>
> </cfhttp>
>
> <cfdump var="#cfhttp.filecontent#">
>
> <cfabort>
>
>

-- 
-----------------------------------------
Scott Brady
http://www.scottbrady.net/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333147
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to