Key generation issue (with Paypal sandbox)

I am trying to integrate LimeLM's license generator with Paypal. I'm using the sample checkout code. I performed 1 complete checkout in Paypal's sandbox. I didn't get a serial in my email, and the dashboard did not show one being generated. I decided that it's probably because Paypal's sandbox buyer account's email addresses aren't real (they are simulated, any messages get sent to the sandbox inbox collectively), so the paychecker.php call to ValidatePP() probably failed and exited.

I wanted to see a working serial being emailed to me, so I hard-coded my end-user personal data as in:

if ($_GET['paypal']){ // validate PayPal order //if (!ValidatePP()) // exit;

$quantity = 1; $firstName = "Chris" $lastName = "McBuyer"; $custEmail = "myemail@yahoo.com"; // I used an actual, real, working email here}

I performed 1 additional Paypal Sandbox purchase.

The result? Suddenly I had 10 serials in my myemail@yahoo.com inbox, all reflected in the dashboard! Perhaps that notify_url is pinged repeatedly, but only the correct one is supposed to get processed, and I broke it by commenting out the exit? I'm just guessing.

So I have two problems: 1) I got 10 distinct serials generated out of one purchase. 2) I have no more free serials to continue testing this.

Is this something I can get help on?

Chris

The "ValidatePP()" lines are necessary to filter out bad orders. Open PaymentSetting.php and make sure "PayPalSandbox" is set to "true" and the PayPalEmail variable is set to your "merchant" email for that sandbox account.

Also, to see where the paypal validation failed then set "debug" to true in the PaymentSettings. Then open the "payment_debug.log" file.

1) I got 10 distinct serials generated out of one purchase.

This is because you commented the ValidatePP() lines. Uncomment them.

2) I have no more free serials to continue testing this.

If you want I can delete the product keys in your account. Do you want that?

Wyatt wrote:> If you want I can delete the product keys in your account. Do you want that?

Yes, that would be very helpful. My username is punch. Do you need anything else to make that happen?

Thanks for being so helpful, Wyatt. It's appreciated.

Chris

I've deleted all the product keys. If you have any other questions I'll be glad to help.