WEBApi: No email is sent, too many keys generated

I am currently trying to set up automatic product key generation after an order, and I've run into a few problems. First, no email is sent to the user after and order is placed (that may still be an issue on my side, but I'm not 100% sure). Second, way too many product keys are generated. I had my friend purchase a test license and four keys were generated when he only bought one. The seem to constantly generate new keys every few minutes. I have to keep deleting them and they keep regenerating.

Any ideas?

About 20 keys have been generated when only 3 have been purchased. They are all from the same email as well.

Please help. It won't stop generating product keys.

Just tested again on another server. It's generating product keys left and right. The log shows nothing but successes. After paychecker finished, it just starts right back up again on its own.

If you're using the PHP version, then enable debugging and logging. Then look at the log.

If you're using the ASP.NET version then run it in a debugger.

In either case it sounds like your site is failing to contact PayPal and say that the notification was confirmed & processed, and thus PayPal retries over and over again. But again, there's no way to know unless you provide a whole lot more information.

When you said to enable debugging, I'm assuming you meant in PaymentSettings.php? I did that but nothing was appearing in the debug_log. I checked file permissions and everything. I ended up having to call the mail function to my own email and include the debug text as the message to see what was going on. Everything said SUCCESS. payment checker starts, and stops just fine, but then it just starts back up again. Could it be because my site uses http and not https? Perhaps the request couldn't go through right or something?

It sounds like your script is throwing an error. Check your HTTP and PHP error logs.