Jump to content


Photo

*FIXED* Jason's paypal_ipn and PAYMENT_FEE error


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

#1 Noel

Noel

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 10 July 2003 - 02:03 AM

(edit- please note that the problem is solved now)

I'm trying to use Jason's "paypal_ipn" tag, but I'm getting an error with it.

This is what I get in the ColdFusion application.log file.

-------
62.206.229.140
An error occurred while evaluating the expression:
#payment_fee#
Error near line 180, column 82.

Error resolving parameter PAYMENT_FEE
--------

I've emaild Jason about this, but up till now no reply. So for now anyone here with a sugestion on how I can fix this problem?

Noel.

#2 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 10 July 2003 - 10:34 AM

If you are doing subscriptions, there is no payment_fee.

For a list of subscriptions fields, see the 2nd page of the Technical Overview: http://www.paypal.com/ipn

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

#3 Noel

Noel

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 10 July 2003 - 10:50 AM

Thanks for the info, but I'm not trying to do a subscription!

This is what I'm using to call PayPal from my site.
Please note that I've changed the "business" email addres and he "return" value to something else in this sample. The rest is like it is on my site!

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="my@email_address.info">
<input type="hidden" name="item_name" value="IPN Test">
<input type="hidden" name="amount" value="0.01">
<input type="hidden" name="return" value="http://www.my_domain_name.info/paypal_ipn/paypal_ipn.cfm">
<input type="image" src="http://images.paypal.com/images/x-click-butcc.gif" name="submit">
</form>

When PayPal returns to the "return" address I get the error!

My account with PayPal is a Pound Serling one (it's set to primary). I've tested it also with the US dollars set to primary, but I still get the same error.

Could it be that the call from my site is NOT in the same "directory" as the "paypal_ipn" tag? (It's the same domain!)

Any sugesions?

Noel.

#4 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 10 July 2003 - 02:05 PM

payment_fee will also be missing if payment_status=Pending. Your script should not assume that payment_fee will be present.

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

#5 Noel

Noel

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 10 July 2003 - 03:03 PM

Yes I did find the problem.

I guess you can call it an ID ten T error. (ID10T)

All I needed to do was accept a payment on the PayPal account. (up till now I was denying all the payments for the test)
When I accepted a payment the PayPal account went into "auto mode", and accepting all payments automatically and send me back the #PAYMENT_FEE# field.

The error is gone now and all is working well.
I love the way the tag is puting all the data in the DB.

Noel.

#6 paypal_pb

paypal_pb

    Advanced Member

  • Members
  • 2,960 posts

Posted 10 July 2003 - 04:59 PM

Yeah, the fee is unknown until the payment completes.

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

#7 jmercmon

jmercmon

    Member

  • Members
  • PipPip
  • 14 posts

Posted 20 August 2003 - 06:24 PM

I have now included a manual in the IPN package that details how to setup your account with paypal for proper operation so we don't have these errors.

Noel,

I am sorry I missed your emails. I get a lot of junk mail an I try to filter it a little and some how I always lose the important ones. I have stopped filtering now and Have resigned to the fact that I will have to look through it all myself so I don't loose any messages.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users