# Lizenzprüfung in eigenen Shopware 4 Plugins

**URL:** <https://forum.shopware.com/t/lizenzprufung-in-eigenen-shopware-4-plugins/17583>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [5. Januar 2014 um 16:46 UTC](https://forum.shopware.com/t/lizenzprufung-in-eigenen-shopware-4-plugins/17583 "2014-01-05T16:46:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ideenwirbler](https://avatars.discourse-cdn.com/v4/letter/i/7993a0/32.png) [@Ideenwirbler](https://forum.shopware.com/u/Ideenwirbler)\
**Post date:** [5. Januar 2014 um 16:46 UTC](https://forum.shopware.com/t/lizenzprufung-in-eigenen-shopware-4-plugins/17583/1 "2014-01-05T16:46:20Z")

</div>

Moin Moin, weiß jmd wie ich eine Lizenzprüfung in meinen eigenen Plugins einbauen kann? In SW 3 ging es anscheind mit folgendem Code: ` //Standard licence check method public static function checkLicense() { $module = 'sSWAGHELLOWORLD'; // Plugin modul key $secret = 'generatedSecreteKey'; // Plugin specific secret key $u = sha1(uniqid(mt\_rand(), true)); $r = Shopware()-\>License()-\>checkLicense($module, $u); if ($r != sha1($secret . $u)) { throw new Exception('The review of the secret has failed.'); } } ` leider existiert die Funktion „Shopware()-\>License()“ nicht mehr! Weiß jmd rat? Vielen Dank und Gruß

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [5. Januar 2014 um 16:47 UTC](https://forum.shopware.com/t/lizenzprufung-in-eigenen-shopware-4-plugins/17583/2 "2014-01-05T16:47:38Z")

</div>

Wenn du das Plugin in den store stellst und die Option auswählst, dann erhälst du von Shopware den entsprechenden Code. Viele Grüße
