getting the value of line item entity field in CommerceLicenseRemoteBase class I am extending CommerceLicenseRemoteBase class for remote synchronization. I have added a custom line item and require that value in 

CommerceLicenseSynchronizableInterface::synchronize().


How can i fetch the value of custom line item. I have tried    

$license = entity_load_single('commerce_license', $id);
entity_metadata_wrapper('commerce_license', $license) 


but that did not work. 

Thank you
Generally you'd do something like this:

$wrapper = entity_metadata_wrapper('commerce_license', $license);
$wrapper-&gt;PROPERTY_YOU_WANT-&gt;value();


(See here for more detail: https://www.drupal.org/documentation/entity-metadata-wrappers)

You could always ask in the issue queue for the module:

https://www.drupal.org/project/issues/commerce_license?categories=All