Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • ok ??
    I’m about out of ideas but the next thing to try is verify that the on1 and os1 values are being sent from your browser. The testing I have already done shows them but you may like to try anyway. Do you use Firefox? If so, there is a handy addon called Httpfox which allows you to capture and view the POST variables when they are sent from the browser to the server (in this case, the Paypal server). Its a very handy tool! I think there are similar tools for other browsers.
    Give that a go and check if the variables are being set.
    Have you used the Paypal sandbox for testing? Its probably the easiest way for you to sort this out rather than using the live site and having to make real donations.
    You could also try some debugging by adding some code to ‘paypal.php’ that echos the variables when they are received and before the database query is executed.

    Deverah, I saw the IPN values so don’t worry about them being removed.
    I don’t know how much you know about the way that DonatePlus uses the variables so here’s a quick rundown:
    Item_number is used to determine what details are posted on the wall. It has two parts separated by a ‘:’, the first value is what we are interested in: a value of ‘1’ will post the user details,donation amount and comment whilst a value of ‘2’ will only post the user details and comment. A value of ‘0’ will post nothing.
    The donor name is sent as on0 and the donor email as os0. The donor’s URL is sent as on1 and the comment as os1. These are returned from PayPal slightly differently for some reason. on0 and os0 become option_name1 and option_selection1 whilst on1 and os1 become option_name2 and option_selection2 respectively. Your IPN had the option_name1 and option_selection1 values (on0 and os0). Are you sure the other values were filled in by the donor?

    ok, so you can manually add the comment field and see it displayed on the wall, therefore the database is correctly setup and the wall display function is working. I have seen the correct data being sent to PayPal in the POST and we can assume that PayPal is sending the comment data back to your script (the IPN email would verify this), so there could be a problem with ‘paypal.php’ not adding the comment into the database.
    Do you know how to use ‘phpmyadmin’ to check the mysql database to see what’s actually being inserted there?
    Have you made any changes to the ‘paypal.php’ file?

    I just tried your audio player and it worked fine for me!

    I’ve just done a quick check on your website (I got the url from one of your other posts).
    Everything looks good in the POST data so your website is correctly sending data to PayPal. If you can’t get the IPN email I mentioned above, can you check the DonatePlus table in your website’s database to see what information is being inserted?

    Hi Devarah,
    the message you posted is not the one I am after. Have you made any changes to the standard DonatePlus files? Also, what version of DonatePlus are you using?
    There should be an email that actually comes from the DonatePlus paypal.php file. It will be sent to the email listed as the thankyou email address in the admin panel. The email subject will be ‘Donate Plus – Paypal IPN Transaction’ and will list a set of around 25 variables that are received by PayPal from your website.

    Just a follow up on this:
    I was wondering why the IPN would not work on Port 80. It is supposed to work on any port, in fact PayPal apparently defaults to Port 80. However, PayPal does recommend using port 443 because there are more listeners on 443. The IPN procedure in Paypal expects to receive your response within 30 seconds, hence if your script is unable to connect to a listener on port 80 within that time, you will not get a response.

    There are some errors in the processing of the PayPal transactions. One I have noticed is that the code does not handle ALL types of transactions. It will ONLY process PayPal responses of ‘verified’ or ‘invalid’ even though there are other possible responses depending on the transaction. Any other response (or lack of response) will result in the ‘FATAL ERROR – no reply at all’ message. For example a pending payment will give no response. The donation will only be posted in your database and hence display on your site if the response is ‘verified’ AND the payment status is ‘completed’. Check in the IPN variables email that you should be receiving to see what type of transaction it was.
    You should also note that the code does not properly implement recurring payments, you will only ever get a one-off payment despite the apparent settings to allow recurring payments.
    I had no problems with port settings, mine are still set to port 80.

    The donor comment is sent by using the os1 field in the PayPal IPN. Can you check the IPN variables (you should be receiving an email with them) and see if that field is set?
    Could you also check whats in the item_number field of the IPN?

    Thread Starter mercuryjones

    (@mercuryjones)

    In fact if you look at the sample code on page 178 of the Paypal “Website Payments Standard Integration Guide” you can see the value ‘src’ must be set to ‘1’ to enable a recurring payment. Otherwise only one payment will occur. See also page 180 for an example with a limited number of recurrences.

Viewing 10 replies - 1 through 10 (of 10 total)