jkudish / JigoShop-Software-Add-on

Add functionality to the JigoShop WordPress plugin, which allows you to run a full-blown software shop, including license activation, license retrieval, activation e-mails and more
https://github.com/jkudish/JigoShop-Software-Add-on
19 stars 2 forks source link

Prevent license keys from being used to upgrade more than once #27

Closed jkudish closed 12 years ago

jkudish commented 12 years ago

When a customer completes an upgrade order (when PayPal sends notification that the payment has been made), we need to:

  1. Flag the old order as being upgraded
  2. Flagged orders cannot be used again for an upgrade (to prevent the same license key from being used to to purchase another upgrade)
  3. Flagged orders will no longer activate. Any activation requests should respond with an error and message that license key has been upgraded and deactivated.
  4. Flagged orders are still listed in the lost license email (generated from http://secure.sparkbooth.com/store/lost-license), but have "Upgraded and Deactivated" for the license key
  5. If they do try to use an already upgraded license key to purchase another upgrade, display "License key already upgraded".