Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Adding a Licensed Product

Developer Questions

I need to send some custom data to my software from the license server that I can evaluate within my software. How do I accomplish this?

Sending custom data can be accomplished by making a modification to the license module. Open ~/components/modules/license_module/license_module.php and look for the following code snippet:

Code Block
languagephp
firstline680
linenumberstrue
		$custom = array(
			'license_type' => (isset($service->package_pricing->period) ? $service->package_pricing->period : ""),
			'cancellation_date' => $service->date_canceled
		);

Add additional data by appending it to this array.