Web API

After paypal payment completed, returned to correct page, buyer and seller sandbox account showed correct transaction, but product key never got sent, could not find payment_debug.log anywhere (should be in the same directory as paymentSettings.php) to see what went on.

Please help

In PaymentSettings.php:

  1. Is the $debug variable enabled? If not, set it to true.
  2. Does the $debug_log variable point to a file to which the script has write access? By default that's not true on most systems. Create a blank file and give it the necessary permissions.

Also, check your PHP error log. Do you see any errors or warnings?

Still very flaky, sometime it works sometime it does not.Logged in Sandbox, verify that paypal sent ipn to correct url, but nothing happened. Log file not updated.Worked for a few time this morning then suddenly stopped.I don't know how to trouble shoot this. Any idea?

Worked for a few time this morning then suddenly stopped.

Ok, you need more information.

Is PayPal actually reaching your server? (Check your HTTP logs).

Is the PHP script actually running successfully? (Check your PHP error logs -- not what PaymentSettings is writing, but rather the php log you set in php.ini).

If both of those logs look good (PayPal is actually getting through to your server & the script is actually running successfully) then, and only then, check the log created by PaymentSettings.php.

If you're still getting errors tell me which steps you've checked.

log files? never heard of them. Can't find them anywhere. Godaddy cPanel has a button "Error log", clicked it, nothing logged???

I am sorry, the problem is I bought this extremely complex website template and when it is in live mode, everything works. Thanks for your help this I have to fix, can't have it live while testing.

log files? never heard of them.

Enable HTTP logging in GoDaddy. Enable PHP error logs in GoDaddy.

Thanks for your help this I have to fix, can't have it live while testing.

Ok, glad to help.