Best laravel framework open-source packages.

Envato purchase code verifier

๐Ÿš‚ A nifty tool for Envato Authors needing to create purchase code verifier as easy and as fast as possible.
Updated 2 years ago

๐Ÿš‚ Envato Purchase Code Verifier

Clone, download, or copy the 'EnvatoPurchaseCodeVerifier' nifty class to create your own Envato purchase verifier tool. You can go to index.php to see sample code. Read EnvatoPurchaseCodeVerifier.php to understand what the class is all about. It's really simple.

Contributions are highly appreciated!


  1. First, require the verifier class:
    require_once 'EnvatoPurchaseCodeVerifier.php';
    
  2. Next, use the code below to create an instance of 'EnvatoPurchaseCodeVerifier'. Create your own access token at: https://build.envato.com/create-token
    $purchase = new EnvatoPurchaseCodeVerifier($access_token);
    
  3. Then, check the user purchase code:
    $verified = $purchase->verified($buyer_purchase_code);
    // Will return false if purchase code is invalid, otherwise the purchase data.
    

That's it! Happy Coding!