$code = 'your_purchase_code'; // replace with your purchase code if (verifyPurchaseCode($code)) echo 'The purchase code is valid.'; else echo 'The purchase code is not valid.';
<?php $purchase_code = $_POST['code']; $api_url = "https://api.envato.com/v3/market/author/sale?code=" . $purchase_code; $headers = [ "Authorization: Bearer YOUR_PERSONAL_API_TOKEN" ]; // Send request via cURL $ch = curl_init($api_url); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $data = json_decode($response, true); if (isset($data['item']['id'])) echo "Valid purchase! Item: " . $data['item']['name']; else echo "Invalid purchase code."; envato purchase code verify php script nulled
If you only need to verify a few customers per month, log in to your Envato account and use their manual verification tool or simply ask the customer to send a screenshot of their downloads page. $code = 'your_purchase_code'; // replace with your purchase