|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/16/2003 Posts: 10 Location: ,
|
I have 5+ years of CF/SQL and cannot determine WHY, when PP polls my server initially, I do NOT find a #form.fieldnames#.
Has anyone else had this problem.
Did download Jason's code and he is doing the same thing.
Robert
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/16/2003 Posts: 10 Location: ,
|
Thanks for the reply. It does not address the problem I am having. The code you refer me to is SIMPLE enough. I am NOT getting #form.fieldnames# variable. Without it, I am dead in the water. Robert <blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"> Originally posted by paypal_pb[br]Also have a look at: http://www.paypal.com/cg...esamples-pop-outside#cf
Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote"> Robert Dew Web Agency, Inc. Schaumburg, IL Lead programmer 5 years plus: - Cold Fusion - SQL Server - Javascript - Windows 25 years coding non Web apps.
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
It's just a normal POST with FORM fields. Do you know if your script is being hit at all? Try this: http://www.paypaldev.org/topic.asp?TOPIC_ID=101
Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/16/2003 Posts: 10 Location: ,
|
Absolutely - I KNOW my script is getting hit. I have an emailer in it. But I am getting NO form fields at all. Could I have something wrong in the PP end? R <blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"> Originally posted by paypal_pb[br]It's just a normal POST with FORM fields. Do you know if your script is being hit at all? Try this: http://www.paypaldev.org/topic.asp?TOPIC_ID=101
Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
Unlikely but possible. Did you try this: http://www.paypaldev.org/topic.asp?TOPIC_ID=101
Also, it's useful to see code snippets. Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/16/2003 Posts: 10 Location: ,
|
Yes, I tried this code snippet. But like I said PP is not sending me any form vars. Is it something I have done wrong in the PayPal site. I am only supposed to type in the URL for the template, right? Robert P.S. THis forum software VERY annoying. Have to KEEP putting my username and pwd in!!! <blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"> Originally posted by paypal_pb[br]Unlikely but possible. Did you try this: http://www.paypaldev.org/topic.asp?TOPIC_ID=101
Also, it's useful to see code snippets. Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
Copy and paste the below into a .htm page. Modify "action" to point to your CFM script. Press "Test" button. <form method="post" action="http://www.mysite.com/ipn.cfm"> <input type="submit" name="" value="Test IPN"> <input type="hidden" name="payment_date" value="17:53:45 Nov 5, 2002 PST"> <input type="hidden" name="txn_type" value="web_accept"> <input type="hidden" name="last_name" value="Breitenbach"> <input type="hidden" name="item_name" value=""> <input type="hidden" name="payment_gross" value="0.01"> <input type="hidden" name="mc_currency" value="USD"> <input type="hidden" name="payment_type" value="instant"> <input type="hidden" name="verify_sign" value="AlWncXKLadIepzMosHhM.VWxC0Z6AZYI0ynXRnEUma0d3RMC.TXWaJro"> <input type="hidden" name="payer_status" value="unverified"> <input type="hidden" name="payer_email" value="pb-test@paypal.com"> <input type="hidden" name="txn_id" value="01G32341KC3727119"> <input type="hidden" name="first_name" value="Patrick"> <input type="hidden" name="quantity" value="1"> <input type="hidden" name="receiver_email" value="pb-sell@paypal.com"> <input type="hidden" name="payer_id" value="QGVDAFGZ9XHLJ"> <input type="hidden" name="payment_method" value="non_cc"> <input type="hidden" name="item_number" value=""> <input type="hidden" name="payment_status" value="Completed"> <input type="hidden" name="mc_gross" value="0.01"> <input type="hidden" name="custom" value=""> <input type="hidden" name="notify_version" value="1.4"> <input type="submit" value="Test"> </form> It's possible to save your log in to the forum so that you never have to log in again (as long as you're at the same computer). Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/20/2003 Posts: 3 Location: ,
|
robert, did you figure out the problem why PP isnt passing over the form variables needed to run your script? im also having the same problem and PP keeps telling me its a problem with my script. ive explained to them that it doesnt matter, the script doesnt run till you send me the correct variables. is it me.., or do they just not get it. is IPN even compatible with coldfusion!?
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/16/2003 Posts: 10 Location: ,
|
My problem inexpicably went away. (Suggesting an error on my part?) I am almost complete with passing control over to our bookeeping system. Sorry I cannot provide further help.
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by qwert [br]robert, did you figure out the problem why PP isnt passing over the form variables needed to run your script? im also having the same problem and PP keeps telling me its a problem with my script. ive explained to them that it doesnt matter, the script doesnt run till you send me the correct variables. is it me.., or do they just not get it. is IPN even compatible with coldfusion!? <hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
Robert Dew Web Agency, Inc. Schaumburg, IL
Lead programmer 5 years plus: - Cold Fusion - SQL Server - Javascript - Windows 25 years coding non Web apps.
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/7/2003 Posts: 13 Location: ,
|
Patrick I have been trying to setup IPN with Subscription service. I notice in your IPN Test code there are variables I have not used before. Expecially the verify_sign. I did what you stated: http://www.coastcottages.com/test.cfm and changed to action to point to my success.cfm page. When I run the test, I successfully view my success.cfm page, but that's it. How the heck do I know if it were successful or not? I suck at CFusion!
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/7/2003 Posts: 13 Location: ,
|
Patrick, Okay disregard my previous post. My test.cfm page works. To initially debug, I am able to output all vars and data on my success.cfm page. However, why would it not update my dbase??? http://www.coastcottages.com/test.cfm
TIA I suck at CFusion!
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/16/2003 Posts: 10 Location: ,
|
TIA, I take it you resolved your own problem? And you thought you sucked!? Great going. Anything I can do to help, just let me know.
Robert
Robert Dew Web Agency, Inc. Schaumburg, IL
Lead programmer 5 years plus: - Cold Fusion - SQL Server - Javascript - Windows 25 years coding non Web apps.
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/7/2003 Posts: 13 Location: ,
|
Here is a dumb question. So I never got an error on my success.cfm page. How the **** do I know it passed?
It is not writing anything to my dbase. I'm not getting my emails as I should. I see the vars and data that are passed from the script, but LOL how do I know it is 100% operational?
TIA Terry
I suck at CFusion!
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/16/2003 Posts: 10 Location: ,
|
I am not even familiar with yout success.cfm page.
Something you coded? We recognize success by passing a members id to PP, then from PP response, we file the response in the member accounting data and trip an email to them to verify it posted.
[quote]Originally posted by MAGSGQ
Robert Dew Web Agency, Inc. Schaumburg, IL
Lead programmer 5 years plus: - Cold Fusion - SQL Server - Javascript - Windows 25 years coding non Web apps.
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/7/2003 Posts: 13 Location: ,
|
The success.cfm code is almost identical to the easycfm.com tutorial. The only exception is I have my SQL inserts updating my datasource.
Nothing fancy about it yet. I'm still not following on how one determines if the test (test.cfm)http://www.coastcottages.com/test.cfm was successful or not?
I suck at CFusion!
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/7/2003 Posts: 13 Location: ,
|
Here is another site I used. Here are the results, not sure what to make of it. Thank you IPN Tester, Your simulated IPN has been sent successfully Your status report appears below: IPN Creation Date: PDT IPN Expiration Date: PDT Send Count: Target IPN Script: http://www.coastcottages.com/success.cfm IPN Sent: PDT HTTP Status: HTTP/1.1 404 Object Not Found IPN Received: Your script did not reply! Post Back: N/A Variables Sent: Variables Expected: 1 Variables Received: 0 String Length Sent: String Length Expected: 21 String Length Received: 0 Desired Response: Actual Response: None Intentional Response: No! Summary: Your script is not posting back to us! I suck at CFusion!
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/7/2003 Posts: 13 Location: ,
|
Here is code:
<!-- read post from PayPal system and add 'cmd' --> <CFSET str="cmd=_notify-validate">
<CFLOOP INDEX="TheField" list="#Form.FieldNames#"> <CFSET str = str & "#LCase(TheField)#=#URLEncodedFormat(Evaluate(TheField))#"> <cfif TheField IS "PAYMENT_STATUS" AND IsDefined("FORM.payment_date")> <CFSET str = str & "&payment_date=#URLEncodedFormat(Form.payment_date)#"> </cfif> </CFLOOP>
The transaction is successful with PayPal but this is what I get when it posts back to my success.cfm.
Error Occurred While Processing Request Error Diagnostic Information
An error occurred while evaluating the expression:
"#Form.FieldNames#"
Error near line 4, column 33.
----
Error resolving parameter FORM.FIELDNAMES
The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name.
The error occurred while processing an element with a general identifier of (CFLOOP), occupying document position (4:1) to (4:50).
Not sure what to do now.
I suck at CFusion!
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/7/2003 Posts: 13 Location: ,
|
I have a really strange question, so I'll go out on a limb. The source code Patrick provided to test with, what's the purpose of it?
I can pass any vars and data and it will always work, mind you I always get INVALID from PayPal no matter what I do.
Explain how this test code really works and proves code is setup properly, because frankly I got my hopes up thinking this code was the 'Test of all tests' seeing how Eliteweaver wasn't reliable, and to be honest I just don't see how it can verify IPN code.
Can someone elaborate?
I suck at CFusion!
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/16/2003 Posts: 10 Location: ,
|
Terry. Sorry, you're being too vague. Who is Patrick? What source code? Etc. Etc.
What it is exactly that's not working? Are you getting the form variables passed yet? The first thing you're going to want to do for debugging is to dump the inbound from PP to a raw file using CFFILE. See exactly what the data stream PayPal IS SENDING you.
Robert Dew Web Agency, Inc. Schaumburg, IL
Lead programmer 5 years plus: - Cold Fusion - SQL Server - Javascript - Windows 25 years coding non Web apps.
|
|
|
|
Guest
|