Jump to content


Photo

PP not passing form.payment_status


  • This topic is locked This topic is locked
2 replies to this topic

#1 qwert

qwert

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 19 March 2003 - 11:20 PM

here is my error log:

"Error","924","03/19/03","22:07:10",
An error occurred while evaluating the expression: FORM.payment_status eq ""Completed"" Error near line 23, column 30.

Error resolving parameter FORM.PAYMENT_STATUS 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 (CFIF), occupying document position (23:5) to (23:45).

Date/Time: 03/19/03 22:07:10"



here is my 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))#">
</CFLOOP>
<CFIF IsDefined("FORM.payment_date")>
<CFSET str = str & "&payment_date=#URLEncodedFormat(Form.payment_date)#">
</CFIF>
<CFIF IsDefined("FORM.subscr_date")>
<CFSET str = str & "&subscr_date=#URLEncodedFormat(Form.subscr_date)#">
</CFIF>

<!-- post back to PayPal system to validate -->
<CFHTTP URL="https://www.paypal.com/cgi-bin/webscr?#str#" METHOD="GET" RESOLVEURL="false">
</CFHTTP>

<!-- check notification validation -->
<CFIF #CFHTTP.FileContent# is "VERIFIED">

<!-- check that payment_status=Completed -->
<cfif #FORM.payment_status# eq "Completed">

<!-- check that receiver_email is your email address -->
<cfif #FORM.RECEIVER_EMAIL# eq "me@myisp.com">

<!-- process payment -->

</cfif>

</cfif>


<CFELSEIF #CFHTTP.FileContent# is "INVALID">
<!-- log for investigation -->

<CFELSE>
<!--- error --->

</CFIF>

#2 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 20 March 2003 - 03:21 PM

Are you doing subscriptions? If so, you will not get a payment_status.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn

#3 qwert

qwert

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 20 March 2003 - 06:11 PM

how do i find out which IPN variables PP passes in subscription mode besides all the subscription variables? i hadnt come across anything noting that paypal does not pass "payment_status" variable in subscription mode, so i wonder what other varibles PP wont pass so i can avoid further errors. thanks!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users